NAME

Ambassador::API::V2::Error - An error response from the Ambassador API

DESCRIPTION

Ambassador::API::V2::Role::Response plus...

ATTRIBUTES

errors

An array ref of errors returned by the Ambassador API.

METHODS

$string = $error->as_string
my $string = $error->as_string;

Returns the $error->message and $error->errors formatted for human consumption.

Overloading

If used as a string, as_string will be called.

print $error;

SOURCE

The source code repository for Ambassador-API-V2 can be found at https://github.com/dreamhost/Ambassador-API-V2.

COPYRIGHT

Copyright 2016 Dreamhost <dev-notify@hq.newdream.net>.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See http://dev.perl.org/licenses/