table of contents
JSON::Validator::Error(3pm) | User Contributed Perl Documentation | JSON::Validator::Error(3pm) |
NAME¶
JSON::Validator::Error - JSON::Validator error objectSYNOPSIS¶
use JSON::Validator::Error; my $err = JSON::Validator::Error->new($path, $message);
DESCRIPTION¶
JSON::Validator::Error is a class representing validation errors from JSON::Validator.ATTRIBUTES¶
message¶
$str = $self->message;
A human readable description of the error. Defaults to empty string.
path¶
$str = $self->path;
A JSON pointer to where the error occurred. Defaults to "/".
METHODS¶
new¶
$self = JSON::Validator::Error->new($path, $message);
Object constructor.
SEE ALSO¶
JSON::Validator.2017-01-21 | perl v5.24.1 |