NAME
Etcd::Error - API error representation
VERSION
version 0.004
SYNOPSIS
use Etcd;
my $etcd = Etcd->new;
use Try::Tiny;
try {
$etcd->get("/message");
}
catch {
print $_;
};
DESCRIPTION
Etcd::Error objects encapsulate the details of API errors. They are thrown by API calls when something goes wrong.
The provided methods are simple accessors. A stringification overload is provided to produce a meaningful error with backtrace.
The API docs have more information about the meaning of each item. See "SEE ALSO" in Etcd for further reading.
METHODS
error_code
message
cause
index
trace
Stacktrace from the point that the error was generated.
AUTHORS
Robert Norris <rob@eatenbyagrue.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2014 by Robert Norris.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.