Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ITransactionAttribute.RollbackOn Method

Decides if rollback is required for the supplied exception.

[Visual Basic]
Public Sub RollbackOn( _
   ByVal exception As Exception _
)
[C#]
bool RollbackOn(
   Exception exception
);

Parameters

exception
The Exception to evaluate.

Return Value

True if the exception causes a rollback, false otherwise.

See Also

ITransactionAttribute Interface | Spring.Transaction.Interceptor Namespace