static/v5/class/lib/errors/validation-error.js~ValidationErrorItem.html
publicclass| source
Validation Error Item Instances of this class are included in the ValidationError.errors property.
| Public Constructor | | public |
constructor(message: string, type: string, path: string, value: string, inst: Object, validatorKey: Object, fnName: string, fnArgs: string)
Creates new validation error item
| |
| Public Members | | public |
The DAO instance that caused the validation error
| | | public |
An error message
| | | public |
The field that triggered the validation error
| | | public |
The type/origin of the validation error
| | | public |
Parameters used with the BUILT-IN validator function, if applicable
| | | public |
A validation "key", used for identification
| | | public |
Property name of the BUILT-IN validator function that caused the validation error (e.g.
| | | public |
The value that generated the error
| |
Creates new validation error item
| Name | Type | Attribute | Description | | message | string | |
An error message
| | type | string | |
The type/origin of the validation error
| | path | string | |
The field that triggered the validation error
| | value | string | |
The value that generated the error
| | inst | Object |
|
the DAO instance that caused the validation error
| | validatorKey | Object |
|
a validation "key", used for identification
| | fnName | string |
|
property name of the BUILT-IN validator function that caused the validation error (e.g. "in" or "len"), if applicable
| | fnArgs | string |
|
parameters used with the BUILT-IN validator function, if applicable
|
The DAO instance that caused the validation error
An error message
The field that triggered the validation error
The type/origin of the validation error
Parameters used with the BUILT-IN validator function, if applicable
A validation "key", used for identification
Property name of the BUILT-IN validator function that caused the validation error (e.g. "in" or "len"), if applicable
The value that generated the error