C# Class Spring.Validation.Actions.ExceptionAction

Inheritance: BaseValidationAction
Afficher le fichier Open project: spring-projects/spring-net Class Usage Examples

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
OnInvalid ( object validationContext, object>.IDictionary contextParams, IValidationErrors errors ) : void

Called when associated validator is invalid.

Method Details

ExceptionAction() public méthode

Initializes a new instance of the ExceptionAction class.
public ExceptionAction ( ) : System
Résultat System

ExceptionAction() public méthode

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

ExceptionAction() public méthode

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.
Résultat System

OnInvalid() protected méthode

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.
Résultat void