Cbeam
Loading...
Searching...
No Matches
cbeam::error::overflow_error Class Reference

A Cbeam-specific logic error that also behaves like std::overflow_error. More...

#include <overflow_error.hpp>

Inheritance diagram for cbeam::error::overflow_error:
Collaboration diagram for cbeam::error::overflow_error:

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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ overflow_error()

cbeam::error::overflow_error::overflow_error ( const std::string & what_arg)
inlineexplicit

Constructs a overflow_error with the specified message.

Parameters
what_argThe error message describing the condition.

◆ ~overflow_error()

cbeam::error::overflow_error::~overflow_error ( )
overridedefault

Virtual destructor.

Member Function Documentation

◆ what()

const char * cbeam::error::overflow_error::what ( ) const
inlineoverridenoexcept

Returns the descriptive string of this error.

Internally uses std::overflow_error::what().


The documentation for this class was generated from the following file: