![]() |
CosmoBolognaLib
Free Software C++/Python libraries for cosmological calculations
|
#include <Exception.h>
Inherits std::exception.
Public Member Functions | |
Constructors/destructors | |
| Exception () | |
| default constructor | |
| Exception (const std::string message, const ExitCode exitCode=ExitCode::_error_, const std::string header="\n", const std::string functionCBL=cbl::par::defaultString, const std::string fileCBL=cbl::par::defaultString) | |
| constructor More... | |
| virtual | ~Exception () noexcept=default |
| default destructor | |
Functions to get the protected members of the class | |
| const char * | what () const noexcept override |
| the error description More... | |
| ExitCode | exitCode () const noexcept |
| get the exit status More... | |
| std::string | functionCBL () const noexcept |
| get the CBL function where the exception is raised More... | |
| std::string | fileCBL () const noexcept |
| get the CBL file containing the function where the exception is raised More... | |
Protected Attributes | |
| std::string | m_message |
| the message describing the exception | |
| ExitCode | m_exitCode |
| the exit status | |
| std::string | m_functionCBL |
| the CBL function where the exception is raised | |
| std::string | m_fileCBL |
| the CBL file containing the function where the exception is raised | |
The class Exception.
"Headers/Exception.h"
This is the class used to handle the exceptions
Definition at line 110 of file Exception.h.
|
inlineexplicit |
constructor
| message | the output message |
| exitCode | the exit status |
| header | header of the error message |
| functionCBL | the CBL function where the exception is raised |
| fileCBL | the CBL file containing the function where the exception is raised |
Definition at line 156 of file Exception.h.
|
inlinenoexcept |
|
inlinenoexcept |
get the CBL file containing the function where the exception is raised
Definition at line 227 of file Exception.h.
|
inlinenoexcept |
get the CBL function where the exception is raised
Definition at line 218 of file Exception.h.
|
inlineoverridenoexcept |
the error description
Definition at line 203 of file Exception.h.