|
Cbeam
|
A Cbeam-specific logic error that also behaves like std::logic_error. More...
#include <logic_error.hpp>


Public Member Functions | |
| logic_error (const std::string &what_arg) | |
| Constructs a logic_error with the specified message. | |
| ~logic_error () override=default | |
| Virtual destructor. | |
| const char * | what () const noexcept override |
| Returns the descriptive string of this error. | |
Public Member Functions inherited from cbeam::error::base_error | |
| base_error ()=default | |
| Default constructor. | |
| ~base_error () override=default | |
| Virtual destructor. | |
| const char * | what () const noexcept override |
| Returns a generic explanatory string for all Cbeam base errors. | |
A Cbeam-specific logic error that also behaves like std::logic_error.
This class inherits from cbeam::error::base_error and std::logic_error via virtual inheritance. Catching cbeam::error::base_error will also catch this type, and catching std::logic_error will catch it as well.
|
inlineexplicit |
Constructs a logic_error with the specified message.
| what_arg | The error message describing the condition. |
|
overridedefault |
Virtual destructor.
|
inlineoverridenoexcept |
Returns the descriptive string of this error.
Internally uses std::logic_error::what().