TBTK
Need a break? Support the development by playing Polarity Puzzles
TBTK::Exception Class Reference
Inheritance diagram for TBTK::Exception:
TBTK::ElementNotFoundException TBTK::IndexException

Public Member Functions

 Exception ()
 
 Exception (const std::string &function, const std::string &where, const std::string &message, const std::string &hint)
 
virtual ~Exception ()
 
virtual const char * what () const noexcept
 
virtual void print () const
 
const std::string & getFunction () const
 
const std::string & getWhere () const
 
const std::string & getMessage () const
 
const std::string & getHint () const
 

Constructor & Destructor Documentation

◆ Exception() [1/2]

TBTK::Exception::Exception ( )

Constructor.

◆ Exception() [2/2]

TBTK::Exception::Exception ( const std::string &  function,
const std::string &  where,
const std::string &  message,
const std::string &  hint 
)

Constructor.

◆ ~Exception()

virtual TBTK::Exception::~Exception ( )
virtual

Destructor.

Member Function Documentation

◆ getFunction()

const std::string & TBTK::Exception::getFunction ( ) const
inline

Get function.

◆ getHint()

const std::string & TBTK::Exception::getHint ( ) const
inline

Get hint.

◆ getMessage()

const std::string & TBTK::Exception::getMessage ( ) const
inline

Get message.

◆ getWhere()

const std::string & TBTK::Exception::getWhere ( ) const
inline

Get where.

◆ print()

virtual void TBTK::Exception::print ( ) const
virtual

Print exception to standard error output.

◆ what()

virtual const char* TBTK::Exception::what ( ) const
virtualnoexcept

Overrider std::exception::what().


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