glucat 0.13.0
glucat::error< Class_T > Class Template Reference

Specific exception class. More...

#include <errors.h>

Inheritance diagram for glucat::error< Class_T >:
Collaboration diagram for glucat::error< Class_T >:

Public Member Functions

 error (const std::string &msg)
 Specific exception class.
 error (const std::string &context, const std::string &msg)
auto heading () const noexcept -> const std::string override
auto classname () const noexcept -> const std::string override
void print_error_msg () const override
Public Member Functions inherited from glucat::glucat_error
 glucat_error (const std::string &context, const std::string &msg)
 ~glucat_error () noexcept override=default

Additional Inherited Members

Public Attributes inherited from glucat::glucat_error
std::string name

Detailed Description

template<class Class_T>
class glucat::error< Class_T >

Specific exception class.

Definition at line 56 of file errors.h.

Constructor & Destructor Documentation

◆ error() [1/2]

template<class Class_T>
glucat::error< Class_T >::error ( const std::string & msg)

Specific exception class.

Definition at line 44 of file errors_imp.h.

References classname(), and glucat::glucat_error::glucat_error().

◆ error() [2/2]

template<class Class_T>
glucat::error< Class_T >::error ( const std::string & context,
const std::string & msg )

Definition at line 50 of file errors_imp.h.

References glucat::glucat_error::glucat_error().

Member Function Documentation

◆ classname()

template<class Class_T>
auto glucat::error< Class_T >::classname ( ) const -> const std::string
overridevirtualnoexcept

Implements glucat::glucat_error.

Definition at line 63 of file errors_imp.h.

References glucat::glucat_error::name.

Referenced by error(), and print_error_msg().

◆ heading()

template<class Class_T>
auto glucat::error< Class_T >::heading ( ) const -> const std::string
overridevirtualnoexcept

Implements glucat::glucat_error.

Definition at line 57 of file errors_imp.h.

Referenced by print_error_msg().

◆ print_error_msg()

template<class Class_T>
void glucat::error< Class_T >::print_error_msg ( ) const
overridevirtual

Implements glucat::glucat_error.

Definition at line 69 of file errors_imp.h.

References classname(), and heading().


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