NAME
Net::OpenStack::Client::Error is an error class for Net::OpenStack::Client.
Boolean logic and (non)-equal operator are overloaded using is_error
method. (Use ==
and !=
also for name/message, not eq
/ ne
operators).
Public methods
- mkerror
-
A
Net::OpenStack::Client::Error
factory - new
-
Create new error instance from options, e.g. from a (decoded dereferenced) JSON response.
Arguments are handled by
set_error
. - set_error
-
Process arguments to error
- is_error
-
Test if this is an error or not.
If an optiona l
type
argument is passed, test if error name or code is equal totype
.A numerical type is compare to the code, a string is compare to the name or message
For a set of known errorcodes, a automatic reverse lookup is performed. When e.g. only the error name attribute is set, one can test using a known errorcode.