Nested Namespaces: | |
| namespace | detail |
| Internal details of namespace alib::exceptions. | |
Type Index: | |
| struct | ERException |
| class | Exception |
| struct | Message |
Function Index: | |
| Exception | CreateExceptionFromSystemError (const CallerInfo &ci, int errNo=errno) |
| Exception | CreateExceptionFromSystemError (const CallerInfo &ci, std::error_code errorCode) |
| Exception | CreateExceptionFromWindowsOSError (const CallerInfo &ci, DWORD winError) |
|
inline |
Overloaded version, which accepts an integral posix system exception. Uses std::make_error_code to create an object of type std::error_code to be passed to the original function.
| ci | The source location of the exception creation. |
| errNo | The system's error number. Defaults to system macro errno. |
Definition at line 452 of file exception.inl.
|
inline |
Creates an according Exception to a corresponding system error number. The following data is attached to the message:
"{!Q} ({}){!X}" - Format string used with AString Format() const Note that the 3rd placeholder inhibits formatting the 4th. parameter.errorCode.message() - First format parameter.errorCode.category().name() - Second format parameter.errorCode - A copy of the error code.The exceptions' enumeration type will be std::errc. The result of function std::error_code::message() is attched as a parameter
| ci | The source location of the exception creation. |
| errorCode | The system's error number. |
Definition at line 437 of file exception.inl.
|
inline |
Overloaded version, which accepts a WindowsOS error code.
| ci | The source location of the exception creation. |
| winError | A WindowsOS error number, i.e. received with GetLastError(). |
Definition at line 462 of file exception.inl.