Apertur-SDK
view release on metacpan or search on metacpan
lib/Apertur/SDK/Error/Validation.pm view on Meta::CPAN
package Apertur::SDK::Error::Validation;
use strict;
use warnings;
use parent 'Apertur::SDK::Error';
sub new {
my ($class, %args) = @_;
return $class->SUPER::new(
status_code => 400,
code => 'VALIDATION_ERROR',
message => $args{message} // 'Validation error',
);
}
1;
__END__
=head1 NAME
Apertur::SDK::Error::Validation - 400 validation error
=head1 DESCRIPTION
Thrown when the API returns a 400 status code, indicating that the
request payload failed validation.
=cut
( run in 1.353 second using v1.01-cache-2.11-cpan-5735350b133 )