13 #include "iberbox/config.h" 15 #include <scapix/bridge/object.h> 27 :
public scapix::bridge::object<Error>
70 static const char *sErrorNames[] =
76 "Cryptographic error",
83 "Temporarily unavailable",
87 "Range not satisfiable",
91 "There is a problem with your invoicing information",
95 static_assert((
sizeof(sErrorNames) /
sizeof(sErrorNames[0]) ==
Error::LAST),
"Invalid number of error names");
96 return type <
Error::LAST ? sErrorNames[type] :
"INVALID";
The iberbox namespace.
Definition: task.h:21
int getType() const
Gets the type of the error.
Definition: error.h:117
static const std::string getTypeNameString(unsigned type)
Gets the event type name.
Definition: error.h:105
Error(int type=E_SUCCESS)
Definition: error.h:110
const std::string getNameString() const
Gets the Name String object.
Definition: error.h:129
ErrorType
The error type.
Definition: error.h:35
virtual ~Error()
Definition: error.h:111
The error class.
Definition: error.h:25
const char * getName() const
Gets the Name object.
Definition: error.h:123
static const char * getTypeName(int type)
Gets the event type name.
Definition: error.h:68