xerus
a general purpose tensor library
xerus::misc::generic_error Class Reference

The xerus exception class. More...

#include <exceptions.h>

Inheritance diagram for xerus::misc::generic_error:
Collaboration diagram for xerus::misc::generic_error:

Public Member Functions

 generic_error ()
 : Normal constructor without preset error_info. More...
 
 generic_error (const generic_error &_other) noexcept
 Standard copy constructor. More...
 
const char * what () const noexcept override
 

Public Attributes

std::string error_info
 String containing all relevant information concerning this error. More...
 

Detailed Description

The xerus exception class.

All exceptions thrown by xerus are of this type (or subclasses thereof).

Definition at line 37 of file exceptions.h.

Constructor & Destructor Documentation

◆ generic_error() [1/2]

xerus::misc::generic_error::generic_error ( )

: Normal constructor without preset error_info.

Definition at line 29 of file exceptions.cpp.

◆ generic_error() [2/2]

xerus::misc::generic_error::generic_error ( const generic_error _other)
noexcept

Standard copy constructor.

Definition at line 31 of file exceptions.cpp.

Member Function Documentation

◆ what()

const char * xerus::misc::generic_error::what ( ) const
overridenoexcept

Definition at line 34 of file exceptions.cpp.

Member Data Documentation

◆ error_info

std::string xerus::misc::generic_error::error_info

String containing all relevant information concerning this error.

Definition at line 40 of file exceptions.h.


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