Exception that is thrown in case of a data failure (conversion, creation, ...).
More...
#include <data_exception.hpp>
|
| data_exception () noexcept |
| Create default exception (constructor).
|
|
| data_exception (const char *msg) noexcept |
| Create a new exception (constructor) with some message.
|
|
const char * | what () const noexcept override |
| Return message of exception object.
|
|
| ~data_exception () noexcept override |
| Destructor.
|
|
|
const char * | msg |
| the exception message
|
|
Exception that is thrown in case of a data failure (conversion, creation, ...).
◆ data_exception() [1/2]
sgpp::base::data_exception::data_exception |
( |
const char * |
msg | ) |
|
|
inlineexplicitnoexcept |
Create a new exception (constructor) with some message.
- Parameters
-
◆ data_exception() [2/2]
sgpp::base::data_exception::data_exception |
( |
| ) |
|
|
inlinenoexcept |
Create default exception (constructor).
◆ ~data_exception()
sgpp::base::data_exception::~data_exception |
( |
| ) |
|
|
inlineoverridenoexcept |
◆ what()
const char * sgpp::base::data_exception::what |
( |
| ) |
const |
|
inlineoverridenoexcept |
Return message of exception object.
- Returns
- Returns the message specified in the constructor, otherwise a general text
References msg.
◆ msg
const char* sgpp::base::data_exception::msg |
|
protected |
the exception message
Referenced by what().
The documentation for this class was generated from the following file: