Constructors
constructor
-
Parameters
-
-
context: any
-
errorMessage: string
-
Optional key: string
Properties
errorMessage
errorMessage: string
isServerError
isServerError: boolean
propertyName
propertyName: string
Methods
Static getKey
- getKey(validatorOrErrorName: Validator | string, propertyName?: string): string
-
Parameters
-
validatorOrErrorName: Validator | string
-
Optional propertyName: string
Returns string
A ValidationError 'key'
Constructs a new ValidationError
The Validator used to create this error, if any.
The Context object used in conjunction with the Validator to create this error.
The actual error message
An optional key used to define a key for this error. One will be created automatically if not provided here.