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 |
◆ 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]
| dpp::exception::exception |
( |
exception && | | ) |
|
|
default |
Construct a new exception object (move constructor).
◆ ~exception()
| dpp::exception::~exception |
( |
| ) |
|
|
overridedefault |
Destroy the exception object.
◆ code()
◆ operator=() [1/2]
Copy assignment operator.
- Returns
- exception& reference to self
◆ operator=() [2/2]
Move assignment operator.
- Returns
- exception& reference to self
◆ what()
| const char * dpp::exception::what |
( |
| ) |
const |
|
inlinenodiscardoverridenoexcept |
Get exception message.
- Returns
- const char* error message
◆ error_code
◆ msg
| std::string dpp::exception::msg |
|
protected |