C# Class Spring.Validation.Actions.ExceptionAction

Inheritance: BaseValidationAction
Show file Open project: spring-projects/spring-net Class Usage Examples

Public Methods

Method Description
ExceptionAction ( ) : System

Initializes a new instance of the ExceptionAction class.

ExceptionAction ( IExpression throwsExpression ) : System

Initializes a new instance of the ExceptionAction class with an expression that defines the exception to throw.

ExceptionAction ( string exceptionExpression ) : System

Initializes a new instance of the ExceptionAction class.

Protected Methods

Method Description
OnInvalid ( object validationContext, object>.IDictionary contextParams, IValidationErrors errors ) : void

Called when associated validator is invalid.

Method Details

ExceptionAction() public method

Initializes a new instance of the ExceptionAction class.
public ExceptionAction ( ) : System
return System

ExceptionAction() public method

Initializes a new instance of the ExceptionAction class with an expression that defines the exception to throw.
public ExceptionAction ( IExpression throwsExpression ) : System
throwsExpression IExpression
return System

ExceptionAction() public method

Initializes a new instance of the ExceptionAction class.
public ExceptionAction ( string exceptionExpression ) : System
exceptionExpression string Expression that defines the exception to throw when the validator is not valid.
return System

OnInvalid() protected method

Called when associated validator is invalid.
protected OnInvalid ( object validationContext, object>.IDictionary contextParams, IValidationErrors errors ) : void
validationContext object Validation context.
contextParams object>.IDictionary Additional context parameters.
errors IValidationErrors Validation errors container.
return void