The dpp::exception class derives from std::exception and supports some other ways of passing in error details such as via std::string.
More...
#include "exception.h"
The dpp::exception class derives from std::exception and supports some other ways of passing in error details such as via std::string.
◆ exception() [1/10]
dpp::exception::exception |
( |
| ) |
|
|
default |
Construct a new exception object.
◆ exception() [2/10]
dpp::exception::exception |
( |
const char * |
what | ) |
|
|
inlineexplicit |
Construct a new exception object.
- Parameters
-
◆ exception() [3/10]
Construct a new exception object.
- Parameters
-
what | reason message |
code | Exception code |
◆ exception() [4/10]
dpp::exception::exception |
( |
const char * |
what, |
|
|
size_t |
len |
|
) |
| |
|
inline |
Construct a new exception object.
- Parameters
-
what | reason message |
len | length of reason message |
◆ exception() [5/10]
dpp::exception::exception |
( |
const std::string & |
what | ) |
|
|
inlineexplicit |
Construct a new exception object.
- Parameters
-
◆ exception() [6/10]
Construct a new exception object.
- Parameters
-
what | reason message |
code | Exception code |
References msg.
◆ exception() [7/10]
dpp::exception::exception |
( |
std::string && |
what | ) |
|
|
inlineexplicit |
Construct a new exception object.
- Parameters
-
◆ exception() [8/10]
Construct a new exception object.
- Parameters
-
what | reason message |
code | Exception code |
◆ exception() [9/10]
dpp::exception::exception |
( |
const exception & |
| ) |
|
|
default |
Construct a new exception object (copy constructor)
◆ exception() [10/10]
Construct a new exception object (move constructor)
◆ ~exception()
dpp::exception::~exception |
( |
| ) |
|
|
overridedefault |
Destroy the exception object.
◆ code()
Get exception code.
- Returns
- exception_error_code error code
◆ what()
const char* dpp::exception::what |
( |
| ) |
const |
|
inlineoverridenoexcept |
Get exception message.
- Returns
- const char* error message
Referenced by main().
◆ error_code
◆ msg
std::string dpp::exception::msg |
|
protected |
The documentation for this class was generated from the following file: