Cbeam
|
A Cbeam-specific logic error that also behaves like std::overflow_error. More...
#include <overflow_error.hpp>
Public Member Functions | |
overflow_error (const std::string &what_arg) | |
Constructs a overflow_error with the specified message. | |
~overflow_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::overflow_error.
This class inherits from cbeam::error::base_error and std::overflow_error via virtual inheritance. Catching cbeam::error::base_error will also catch this type, and catching std::overflow_error will catch it as well.
|
inlineexplicit |
Constructs a overflow_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::overflow_error::what().