NAME
Net::FreeIPA::Error is an error class for Net::FreeIPA.
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::FreeIPA::Error
factory - new
-
Create new error instance from (decoded) JSON response (i.e. a hashref).
- 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.
- is_duplicate
-
Test if this is a DuplicateEntry error
- is_not_found
-
Test if this is a NotFound error