Kernel::System::DataValidation::Error

NAME

Kernel::System::DataValidation::Error – Represents an unsuccessful validator, including values and attributes.

PUBLIC INTERFACE

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.

has Validator

Contains the name of the unsuccessful validator.

has Attributes

Contains the attributes, that were originally passed to the related validator.

BUILD()

Will be called automatically with the given values to the constructor.

ToHash()

Converts and returns the information of the error object as a hash reference.

    my $HashReference = $Error->ToHash();

ToJSON()

Converts and returns the information of the error object as a JSON string.

    my $JSONString = $Error->ToJSON();
Scroll to Top