OpenLexocad  27.1
Base::Exception Class Reference

#include <Exception.h>

Inheritance diagram for Base::Exception:
Base::AbortException Base::BadArguments Base::CADKernelError Base::ConstructionError Base::DivisionByZeroError Base::FailedNotDone Base::FileException Base::GuidInUseException Base::ItemNotFound Base::MemoryException Base::NotaNumber Base::NotImplementedError Base::OutOfRange Base::RuntimeError Base::TypeError Base::ValueError Base::VectorWithNullMagnitude

Public Member Functions

 Exception (const char *sMessage, const char *detail)
 
 Exception (void)
 
 Exception (const Exception &inst)
 
virtual ~Exception () throw ()
 
Exceptionoperator= (const Exception &inst)
 
virtual const char * what (void) const throw ()
 
virtual const char * detail (void) const throw ()
 
void ReportException (void) const
 
void SetMessage (const char *sMessage)
 
std::string getFile () const
 
int getLine () const
 
std::string getFunction () const
 
bool getTranslatable () const
 
bool getReported () const
 
void setDebugInformation (const std::string &file, const int line, const std::string &function)
 
void setTranslatable (bool translatable)
 
void setReported (bool reported)
 

Protected Attributes

std::string _sErrMsg
 
std::string _sErrDetail
 
std::string _file { "" }
 
int _line { -1 }
 
std::string _function { "" }
 
bool _isTranslatable { false }
 
bool _isReported { false }
 

Constructor & Destructor Documentation

◆ Exception() [1/3]

Base::Exception::Exception ( const char *  sMessage,
const char *  detail 
)

◆ Exception() [2/3]

Base::Exception::Exception ( void  )

◆ Exception() [3/3]

Base::Exception::Exception ( const Exception inst)

◆ ~Exception()

virtual Base::Exception::~Exception ( )
throw (
)
inlinevirtual

Member Function Documentation

◆ detail()

virtual const char* Base::Exception::detail ( void  ) const
throw (
)
virtual

◆ getFile()

std::string Base::Exception::getFile ( ) const
inline

◆ getFunction()

std::string Base::Exception::getFunction ( ) const
inline

◆ getLine()

int Base::Exception::getLine ( ) const
inline

◆ getReported()

bool Base::Exception::getReported ( ) const
inline

◆ getTranslatable()

bool Base::Exception::getTranslatable ( ) const
inline

◆ operator=()

Exception& Base::Exception::operator= ( const Exception inst)

◆ ReportException()

void Base::Exception::ReportException ( void  ) const

◆ setDebugInformation()

void Base::Exception::setDebugInformation ( const std::string &  file,
const int  line,
const std::string &  function 
)
inline

setter methods for including debug information intended to use via macro for autofilling of debugging information

◆ SetMessage()

void Base::Exception::SetMessage ( const char *  sMessage)
inline

◆ setReported()

void Base::Exception::setReported ( bool  reported)
inline

◆ setTranslatable()

void Base::Exception::setTranslatable ( bool  translatable)
inline

◆ what()

Member Data Documentation

◆ _file

std::string Base::Exception::_file { "" }
protected

◆ _function

std::string Base::Exception::_function { "" }
protected

◆ _isReported

bool Base::Exception::_isReported { false }
mutableprotected

◆ _isTranslatable

bool Base::Exception::_isTranslatable { false }
protected

◆ _line

int Base::Exception::_line { -1 }
protected

◆ _sErrDetail

std::string Base::Exception::_sErrDetail
protected

◆ _sErrMsg

std::string Base::Exception::_sErrMsg
protected

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