CppCommon
1.0.4.1
C++ Common Library
|
System error. More...
#include <system_error.h>
Public Member Functions | |
SystemError ()=delete | |
SystemError (const SystemError &)=delete | |
SystemError (SystemError &&)=delete | |
~SystemError ()=delete | |
SystemError & | operator= (const SystemError &)=delete |
SystemError & | operator= (SystemError &&)=delete |
Static Public Member Functions | |
static int | GetLast () noexcept |
Get the last system error code. More... | |
static void | SetLast (int error) noexcept |
Set the last system error code. More... | |
static void | ClearLast () noexcept |
Clear the last system error code. More... | |
static std::string | Description () |
Convert the last system error code to the system error description. More... | |
static std::string | Description (int error) |
Convert the given system error code to the system error description. More... | |
System error.
System exception provides interface to get, set and clear the last system error.
Thread-safe.
Definition at line 22 of file system_error.h.
|
delete |
|
delete |
|
delete |
|
delete |
|
staticnoexcept |
Clear the last system error code.
Definition at line 41 of file system_error.cpp.
|
inlinestatic |
Convert the last system error code to the system error description.
Definition at line 52 of file system_error.h.
|
static |
Convert the given system error code to the system error description.
error | - System error code |
Definition at line 46 of file system_error.cpp.
|
staticnoexcept |
Get the last system error code.
Definition at line 23 of file system_error.cpp.
|
delete |
|
delete |
|
staticnoexcept |
Set the last system error code.
error | - Last system error code to set |
Definition at line 32 of file system_error.cpp.