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::Errorfactory - 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
typeargument 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_already_inactive
-
Test if this is a AlreadyInactive error
- is_not_found
-
Test if this is a NotFound error