System exception.
More...
#include <B2BITS_SystemException.h>
|
static std::string | createErrorMessage (char const *msg, int errNo) |
| Craete error message using given description and system error code.
|
|
static std::string | getErrorDescription (int errNo) |
| Returns description for error code.
|
|
static int | getLastError () throw () |
| Returns error code of the last operation.
|
|
|
std::string | m_reason |
| std::string that describes raised exception
|
|
◆ SystemException() [1/5]
System::SystemException::SystemException |
( |
| ) |
|
◆ SystemException() [2/5]
System::SystemException::SystemException |
( |
char const * | msg, |
|
|
int | errNo ) |
◆ SystemException() [3/5]
System::SystemException::SystemException |
( |
std::string const & | msg, |
|
|
int | errNo ) |
Constructs SystemException with the given errno and detailed description.
Warning Please be careful. std::string can change last error code.
◆ SystemException() [4/5]
System::SystemException::SystemException |
( |
std::string const & | msg | ) |
|
|
explicit |
◆ SystemException() [5/5]
System::SystemException::SystemException |
( |
char const * | msg | ) |
|
|
explicit |
◆ createErrorMessage()
static std::string System::SystemException::createErrorMessage |
( |
char const * | msg, |
|
|
int | errNo ) |
|
static |
Craete error message using given description and system error code.
◆ getErrNo()
int System::SystemException::getErrNo |
( |
| ) |
const |
throw | ( | ) | | | |
|
inline |
Return the system-depended error code.
◆ getErrorDescription()
static std::string System::SystemException::getErrorDescription |
( |
int | errNo | ) |
|
|
static |
Returns description for error code.
◆ getLastError()
static int System::SystemException::getLastError |
( |
| ) |
|
throw | ( | ) | | | |
|
static |
Returns error code of the last operation.