dodo
0.0.1
A C++ library to create containerized Linux services
|
Descending from Exception, exceptions based on a dodo::common::SystemError code. More...
#include <exception.hpp>
Public Member Functions | |
SystemException (const std::string &file, unsigned int line, const std::string &what, const dodo::common::SystemError &error) | |
Constructor. More... | |
SystemException (const std::string &file, unsigned int line, const std::string &what, const dodo::common::SystemError &error, const DebugObject *thing) | |
Constructor. More... | |
![]() | |
Exception (const std::string &file, unsigned int line, const std::string &what) | |
Construct an Exception. More... | |
Exception (const std::string &file, unsigned int line, const std::string &what, const DebugObject *thing) | |
Construct an Exception. More... | |
const std::string & | getFile () const |
Return the source file where the exception was thrown. More... | |
unsigned int | getLine () const |
Return the line number in the source file where the exception was thrown. More... | |
virtual const char * | what () const noexcept |
Return the exception message. More... | |
Protected Attributes | |
dodo::common::SystemError | error_ |
The exception system error. More... | |
![]() | |
std::string | file_ |
The source file. More... | |
unsigned int | line_ |
The source line number. More... | |
std::string | msg_ |
The exception message. More... | |
Descending from Exception, exceptions based on a dodo::common::SystemError code.
Definition at line 138 of file exception.hpp.
dodo::common::SystemException::SystemException | ( | const std::string & | file, |
unsigned int | line, | ||
const std::string & | what, | ||
const dodo::common::SystemError & | error | ||
) |
Constructor.
file | The source file where the exception was raised. |
line | The line number where the exception was raised. |
what | The exception message. |
error | The underlying SystemError. |
Definition at line 77 of file exception.cpp.
References error_.
dodo::common::SystemException::SystemException | ( | const std::string & | file, |
unsigned int | line, | ||
const std::string & | what, | ||
const dodo::common::SystemError & | error, | ||
const DebugObject * | thing | ||
) |
Constructor.
file | The source file where the exception was raised. |
line | The line number where the exception was raised. |
what | The exception message. |
error | The underlying SystemError. |
thing | The DebugObject context to the error. |
Definition at line 85 of file exception.cpp.
References error_.
|
protected |
The exception system error.
Definition at line 167 of file exception.hpp.
Referenced by SystemException().