The ValidationResult class contains the results of a validation.
The ValidationResultEvent class defines the event object
that is passed to event listeners for the valid
and invalid
validator events.
The class also defines the results
property,
which contains an Array of ValidationResult objects,
one for each field examined by the validator.
This lets you access the ValidationResult objects
from within an event listener.
See also:
feathers.events.ValidationResultEvent
Constructor
new(isError:Bool, subField:String = "", errorCode:String = "", errorMessage:String = "")
Constructor
Parameters:
isError | Pass |
---|---|
subField | Name of the subfield of the validated Object. |
errorCode | Validation error code. |
errorMessage | Validation error message. |
Variables
subField:String
The name of the subfield that the result is associated with. Some validators, such as CreditCardValidator and DateValidator, validate multiple subfields at the same time.