MooseX::Role::Validatable::Error - Base Error class for MooseX::Role::Validatable
use MooseX::Role::Validatable; my $error = MooseX::Role::Validatable::Error->new({ message => 'Internal debug message.', # Required message_to_client => 'Client-facing message', # Required details => { field => 'duration' }, # Optional, Must be a HashRef set_by => 'Source of the error', # Required; MAY default to caller(1) severity => 5, # For ordering, bigger is worse. Defaults to 1. transient => 1, # Boolean, defaults to false alert => 1, # Boolean, defaults to false info_link => 'https://example.com/', # Client-facing URI for additional info on this error. });
Represents an error in validation
A message which might help us figure out what is wrong.
An arbitrary optional HashRef to pass the error details.
A client-friendly string describing the error.
The source of the error.
How bad is it that this happened?
Is this something likely to resolve itself with a little time?
Should someone be alerted when this condition triggers?
A URI for further explanation of the error.
Description of the info_link
Error code in string.
Binary.com <fayland@binary.com>
Copyright 2014- Binary.com
BUILDALL, BUILDARGS, DEMOLISHALL, DOES, does, dump
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install MooseX::Role::Validatable, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MooseX::Role::Validatable
CPAN shell
perl -MCPAN -e shell install MooseX::Role::Validatable
For more information on module installation, please visit the detailed CPAN module installation guide.