Exception to indicate a logic error, such as driving the API incorrectly, such as calling methods in the wrong worder.
More...
#include <lomiri/LomiriExceptions.h>
|
| LogicException (std::string const &reason) |
| Constructs the exception. More...
|
|
virtual std::exception_ptr | self () const override |
| Returns a std::exception_ptr to this . More...
|
|
char const * | what () const noexcept override |
| Returns a string describing the exception, including any exceptions that were nested or chained. More...
|
|
virtual std::exception_ptr | self () const =0 |
| Returns a std::exception_ptr to this . More...
|
|
std::string | name () const |
| Returns the name set by the derived class's constructor.
|
|
std::string | reason () const |
| Returns the reason set by the derived class's constructor (empty string if none). More...
|
|
std::string | to_string (std::string const &indent=" ") const |
| Returns a string describing the exception, including any exceptions that were nested or chained. More...
|
|
std::string | to_string (int indent_level, std::string const &indent) const |
| Returns a string describing the exception, including any exceptions that were nested or chained. More...
|
|
std::exception_ptr | remember (std::exception_ptr earlier_exception) |
| Adds an exception to the exception history chain. More...
|
|
std::exception_ptr | get_earlier () const noexcept |
| Returns the previous exception. More...
|
|
Exception to indicate a logic error, such as driving the API incorrectly, such as calling methods in the wrong worder.
◆ LogicException()
lomiri::LogicException::LogicException |
( |
std::string const & |
reason | ) |
|
|
explicitdefault |
Constructs the exception.
- Parameters
-
reason | Further details about the cause of the exception. |
◆ self()
exception_ptr lomiri::LogicException::self |
( |
| ) |
const |
|
overridevirtual |
The documentation for this class was generated from the following files: