CEPS
24.01
Cardiac ElectroPhysiology Simulator
|
Custom exception that keeps the location of the error and displays nicely the error
Definition at line 38 of file CepsException.hpp.
#include <CepsException.hpp>
Public Member Functions | |
CepsException (const CepsString &message="", CepsBool warning=false, std::source_location loc=std::source_location::current()) | |
Constructor with message and location of instantiation in source files. More... | |
CepsString | errorMessage (CepsBool color=true) const |
Nice display of error. More... | |
Private Attributes | |
std::source_location | m_loc |
CepsBool | m_warning |
CepsException::CepsException | ( | const CepsString & | message = "" , |
CepsBool | warning = false , |
||
std::source_location | loc = std::source_location::current() |
||
) |
Constructor with message and location of instantiation in source files.
Definition at line 35 of file CepsException.cpp.
CepsString CepsException::errorMessage | ( | CepsBool | color = true | ) | const |
Nice display of error.
Definition at line 46 of file CepsException.cpp.
|
private |
Definition at line 56 of file CepsException.hpp.
|
private |
Definition at line 57 of file CepsException.hpp.