public RollbackRuleAttribute ( |
||
exceptionType |
/// The |
|
return | System |
public RollbackRuleAttribute( Type exceptionType )
{
AssertUtils.ArgumentNotNull(exceptionType, "exceptionType");
if ( ! typeof(Exception).IsAssignableFrom( exceptionType ) )
{
throw new ArgumentException("Cannot construct rollback rule from " + exceptionType + "; " + "It's not an Exception");
}
_exceptionName = exceptionType.Name;
}
RollbackRuleAttribute::RollbackRuleAttribute ( string exceptionName ) : System |