Description | manuals and libraries |
Kernel::System::DataValidation::Error - Represents an unsuccessful validator
, including values and attributes.
Provides the information about the failed validator
as well as it's attributes and source values. This class will be used by the data validation backend automatically. For more information, please refer to Kernel::System::DataValidation.
Contains the name of the unsuccessful validator
.
Contains the attributes, that were originally passed to the related validator
.
Will be called automatically with the given values to the constructor.
Converts and returns the information of the error object as a hash reference.
my $HashReference = $Error->ToHash();
Converts and returns the information of the error object as a JSON string.
my $JSONString = $Error->ToJSON();