ValidationErrorItem
Validation Error Item
Instances of this class are included in the ValidationError.errors
property.
Constructor Summary
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 |
Member Summary
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 |
Public Constructors
public constructor(message: string, type: string, path: string, value: string, inst: Object, validatorKey: Object, fnName: string, fnArgs: string) source
Creates new validation error item
Params:
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 |