![]() |
![]()
| ![]() |
![]()
NameOpenXPKI::Exception - central exception class of OpenXPKI. DescriptionThis is the basic exception class of OpenXPKI. Intended useOpenXPKI::Exception->throw (message =>
"I18N_OPENXPKI_FAILED",
if (my $exc =
OpenXPKI::Exception->caught()) {
Please note that FILENAME will be extended to __FILENAME__. If you want to send a specific errorcode to the caller then you can specify errno directly like message, child or params. New Functionsusually all functions from Exception::Class will be used. Nevertheless one function will be overloaded and on new function will be specified to support other modules with errorcodes if one is available. full_messageThis function is used to build the new errormessages conforming to the specifications of OpenXPKI. This means in the first line the specification of i18n. message_codereturns the untranslated and unmodified i18n-message-code Fieldsreturns the names of the available parameters (message, errno, child, params). errnoerrno returns the errorcode if available. childreturns the exception object of the child if this is a nested exception. paramsreturns a hash reference with name and value pairs of the parameters for the error message (i18nGettext).
|