D++ (DPP)
C++ Discord API Bot Library
dpp::exception Class Reference

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 <dispatcher.h>

+ Inheritance diagram for dpp::exception:
+ Collaboration diagram for dpp::exception:

Public Member Functions

 exception ()=default
 Construct a new exception object. More...
 
 exception (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 (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...
 

Detailed Description

The dpp::exception class derives from std::exception and supports some other ways of passing in error details such as via std::string.

Constructor & Destructor Documentation

◆ exception() [1/7]

dpp::exception::exception ( )
default

Construct a new exception object.

◆ exception() [2/7]

dpp::exception::exception ( const char *  what)
inlineexplicit

Construct a new exception object.

Parameters
whatreason message

◆ exception() [3/7]

dpp::exception::exception ( const char *  what,
size_t  len 
)
inline

Construct a new exception object.

Parameters
whatreason message
lenlength of reason message

◆ exception() [4/7]

dpp::exception::exception ( const std::string &  what)
inlineexplicit

Construct a new exception object.

Parameters
whatreason mesage

◆ exception() [5/7]

dpp::exception::exception ( std::string &&  what)
inlineexplicit

Construct a new exception object.

Parameters
whatreason message

◆ exception() [6/7]

dpp::exception::exception ( const exception )
default

Construct a new exception object (copy constructor)

◆ exception() [7/7]

dpp::exception::exception ( exception &&  )
default

Construct a new exception object (move constructor)

◆ ~exception()

dpp::exception::~exception ( )
overridedefault

Destroy the exception object.

Member Function Documentation

◆ what()

const char * dpp::exception::what ( ) const
inlineoverridenoexcept

Get exception message.

Returns
const char* error message
D++ Library version 10.0.35D++ Library version 10.0.34D++ Library version 10.0.33D++ Library version 10.0.32D++ Library version 10.0.31D++ Library version 10.0.30D++ Library version 10.0.29D++ Library version 10.0.28D++ Library version 10.0.27D++ Library version 10.0.26D++ Library version 10.0.25D++ Library version 10.0.24D++ Library version 10.0.23D++ Library version 10.0.22D++ Library version 10.0.21D++ Library version 10.0.20D++ Library version 10.0.19D++ Library version 10.0.18D++ Library version 10.0.17D++ Library version 10.0.16D++ Library version 10.0.15D++ Library version 10.0.14D++ Library version 10.0.13D++ Library version 10.0.12D++ Library version 10.0.11D++ Library version 10.0.10D++ Library version 10.0.9D++ Library version 10.0.8D++ Library version 10.0.7D++ Library version 10.0.6D++ Library version 10.0.5D++ Library version 10.0.4D++ Library version 10.0.3D++ Library version 10.0.2D++ Library version 10.0.1D++ Library version 10.0.0D++ Library version 9.0.19D++ Library version 9.0.18D++ Library version 9.0.17D++ Library version 9.0.16D++ Library version 9.0.15D++ Library version 9.0.14D++ Library version 9.0.13D++ Library version 9.0.12D++ Library version 9.0.11D++ Library version 9.0.10D++ Library version 9.0.9D++ Library version 9.0.8D++ Library version 9.0.7D++ Library version 9.0.6D++ Library version 9.0.5D++ Library version 9.0.4D++ Library version 9.0.3D++ Library version 9.0.2D++ Library version 9.0.1D++ Library version 9.0.0D++ Library version 1.0.2D++ Library version 1.0.1D++ Library version 1.0.0