Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

SendToQueueExceptionHandler.OnException Method

Called when an exception is thrown during listener processing under the scope of a MessageQueueTransaction.

[Visual Basic]
Public NotOverridable Sub OnException( _
   ByVal exception As Exception, _
   ByVal message As Message, _
   ByVal messageQueueTransaction As MessageQueueTransaction _
) _
    Implements IMessageTransactionExceptionHandler.OnException
[C#]
public TransactionAction OnException(
   Exception exception,
   Message message,
   MessageQueueTransaction messageQueueTransaction
);

Parameters

exception
The exception.
message
The message.
messageQueueTransaction
The message queue transaction.

Return Value

An action indicating if the caller should commit or rollback the MessageQueueTransaction

Implements

IMessageTransactionExceptionHandler.OnException

See Also

SendToQueueExceptionHandler Class | Spring.Messaging.Listener Namespace