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

The root class for all Cbeam-specific exceptions, akin to std::exception. More...

#include <base_error.hpp>

Inheritance diagram for cbeam::error::base_error:
Collaboration diagram for cbeam::error::base_error:

Public Member Functions

 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

The root class for all Cbeam-specific exceptions, akin to std::exception.

This class inherits virtually from std::exception to allow multiple inheritance with standard library exceptions (e.g., std::runtime_error or std::system_error), without generating multiple subobjects of std::exception.

Constructor & Destructor Documentation

◆ base_error()

cbeam::error::base_error::base_error ( )
default

Default constructor.

◆ ~base_error()

cbeam::error::base_error::~base_error ( )
overridedefault

Virtual destructor.

Member Function Documentation

◆ what()

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

Returns a generic explanatory string for all Cbeam base errors.

Returns
A pointer to a null-terminated string with an error message.

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