Exception class.
More...
#include <utils_exception.hpp>
|
| exception ()=default |
| Default exception.
|
|
| exception (const exception &other)=default |
| Copy constructor.
|
|
| exception (const std::string &message) |
| Simple message exception.
|
|
| exception (const std::string &class_name, const std::string &message) |
| Class name + message exception.
|
|
const std::string & | get_description () const |
| Returns the message of the exception.
|
|
const char * | what () const noexcept override |
| Override std::exception::what()
|
|
|
std::string | message_ = "Undefined exception." |
|
Exception class.
Definition at line 12 of file utils_exception.hpp.
◆ exception() [1/4]
lxgui::utils::exception::exception |
( |
| ) |
|
|
default |
Default exception.
- Note
- Reports: "Undefined exception."
◆ exception() [2/4]
lxgui::utils::exception::exception |
( |
const exception & |
other | ) |
|
|
default |
◆ exception() [3/4]
lxgui::utils::exception::exception |
( |
const std::string & |
message | ) |
|
|
explicit |
Simple message exception.
- Parameters
-
message | The message to throw |
- Note
- Reports: "<message>"
Definition at line 5 of file utils_exception.cpp.
◆ exception() [4/4]
lxgui::utils::exception::exception |
( |
const std::string & |
class_name, |
|
|
const std::string & |
message |
|
) |
| |
Class name + message exception.
- Parameters
-
class_name | The name of the class which throws the exception |
message | The message to throw |
- Note
- Reports: "<class_name>: <message>"
Definition at line 7 of file utils_exception.cpp.
◆ get_description()
const std::string & lxgui::utils::exception::get_description |
( |
| ) |
const |
Returns the message of the exception.
- Returns
- The message of the exception
Definition at line 10 of file utils_exception.cpp.
◆ what()
const char * lxgui::utils::exception::what |
( |
| ) |
const |
|
overridenoexcept |
Override std::exception::what()
- Returns
- The message of the exception
Definition at line 14 of file utils_exception.cpp.
◆ message_
std::string lxgui::utils::exception::message_ = "Undefined exception." |
|
protected |
The documentation for this class was generated from the following files: