The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

JSON::Validator::Error - JSON::Validator error object

SYNOPSIS

  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.