Creates a new ValidationError item. Instances of this class are included in the ValidationError.errors
property.
An error message
The type/origin of the validation error
The field that triggered the validation error
The value that generated the error
the DAO instance that caused the validation error
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
parameters used with the BUILT-IN validator function, if applicable
Readonly
instanceThe DAO instance that caused the validation error
Private
isReadonly
messageAn error message
Private
normalizeReadonly
originReadonly
pathThe field that triggered the validation error
Readonly
typeThe type/origin of the validation error
Readonly
validatorParameters used with the BUILT-IN validator function, if applicable
Readonly
validatorA validation "key", used for identification
Readonly
validatorProperty name of the BUILT-IN validator function that caused the validation error (e.g. "in" or "len"), if applicable
Readonly
valueThe value that generated the error
Static
OriginsWill be removed in v7
Static
TypeWill be removed in v7
return a lowercase, trimmed string "key" that identifies the validator.
Note: the string will be empty if the instance has neither a valid validatorKey
property nor a valid validatorName
property
thrown if NSSeparator is found to be invalid.
controls whether the returned value is "namespace",
this parameter is ignored if the validator's type
is not one of ValidationErrorItem.Origins
a separator string for concatenating the namespace, must be not be empty, defaults to "." (fullstop). only used and validated if useTypeAsNS is TRUE.
Generated using TypeDoc
Validation Error Item Instances of this class are included in the
ValidationError.errors
property.