D++ (DPP)
C++ Discord API Bot Library
|
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>
Public Member Functions | |
exception ()=default | |
Construct a new exception object. More... | |
exception (const char *what) | |
Construct a new exception object. More... | |
exception (exception_error_code code, const char *what) | |
Construct a new exception object. More... | |
exception (const char *what, size_t len) | |
Construct a new exception object. More... | |
exception (const std::string &what) | |
Construct a new exception object. More... | |
exception (exception_error_code code, const std::string &what) | |
Construct a new exception object. More... | |
exception (std::string &&what) | |
Construct a new exception object. More... | |
exception (exception_error_code code, std::string &&what) | |
Construct a new exception object. More... | |
exception (const exception &)=default | |
Construct a new exception object (copy constructor) More... | |
exception (exception &&)=default | |
Construct a new exception object (move constructor) More... | |
~exception () override=default | |
Destroy the exception object. More... | |
const char * | what () const noexcept override |
Get exception message. More... | |
exception_error_code | code () const noexcept |
Get exception code. More... | |
Protected Attributes | |
std::string | msg |
Exception message. More... | |
exception_error_code | error_code |
Exception error code. More... | |
The dpp::exception class derives from std::exception and supports some other ways of passing in error details such as via std::string.
|
default |
Construct a new exception object.
|
inlineexplicit |
Construct a new exception object.
what | reason message |
|
inlineexplicit |
Construct a new exception object.
what | reason message |
code | Exception code |
|
inline |
Construct a new exception object.
what | reason message |
len | length of reason message |
|
inlineexplicit |
Construct a new exception object.
what | reason message |
|
inlineexplicit |
Construct a new exception object.
what | reason message |
code | Exception code |
|
inlineexplicit |
Construct a new exception object.
what | reason message |
|
inlineexplicit |
Construct a new exception object.
what | reason message |
code | Exception code |
|
default |
Construct a new exception object (copy constructor)
|
default |
Construct a new exception object (move constructor)
|
overridedefault |
Destroy the exception object.
|
inlinenoexcept |
Get exception code.
|
inlineoverridenoexcept |
Get exception message.
|
protected |
Exception error code.
|
protected |
Exception message.