C# Класс Spring.Validation.Actions.ExceptionAction

Наследование: BaseValidationAction
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
OnInvalid ( object validationContext, object>.IDictionary contextParams, IValidationErrors errors ) : void

Called when associated validator is invalid.

Описание методов

ExceptionAction() публичный Метод

Initializes a new instance of the ExceptionAction class.
public ExceptionAction ( ) : System
Результат System

ExceptionAction() публичный Метод

Initializes a new instance of the ExceptionAction class with an expression that defines the exception to throw.
public ExceptionAction ( IExpression throwsExpression ) : System
throwsExpression IExpression
Результат System

ExceptionAction() публичный Метод

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.
Результат System

OnInvalid() защищенный Метод

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.
Результат void