Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IMessageTransactionExceptionHandler.OnException Method

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

[Visual Basic]
Public Sub OnException( _
   ByVal exception As Exception, _
   ByVal message As Message, _
   ByVal messageQueueTransaction As MessageQueueTransaction _
)
[C#]
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

See Also

IMessageTransactionExceptionHandler Interface | Spring.Messaging.Listener Namespace