CEPS  24.01
Cardiac ElectroPhysiology Simulator
CepsException Class Reference

Detailed Description

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>

Inheritance diagram for CepsException:
[legend]

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
 

Constructor & Destructor Documentation

◆ CepsException()

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.

Member Function Documentation

◆ errorMessage()

CepsString CepsException::errorMessage ( CepsBool  color = true) const

Nice display of error.

Definition at line 46 of file CepsException.cpp.

Field Documentation

◆ m_loc

std::source_location CepsException::m_loc
private

Definition at line 56 of file CepsException.hpp.

◆ m_warning

CepsBool CepsException::m_warning
private

Definition at line 57 of file CepsException.hpp.


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