Base::Exception Class Reference

#include <Exception.h>

Public Member Functions

std::string getFile () const
 
std::string getFunction () const
 
int getLine () const
 
std::string getMessage () const
 
virtual PyObjectgetPyExceptionType () const
 returns the corresponding python exception type More...
 
virtual PyObjectgetPyObject ()
 returns a Python dictionary containing the exception data More...
 
bool getReported () const
 
bool getTranslatable () const
 
virtual Base::Type getTypeId (void) const
 
Exceptionoperator= (const Exception &inst)
 
virtual void ReportException () const
 Reports exception. It includes a mechanism to only report an exception once. More...
 
void setDebugInformation (const std::string &file, const int line, const std::string &function)
 setter methods for including debug information intended to use via macro for autofilling of debugging information More...
 
void setMessage (const char *sMessage)
 
void setMessage (const std::string &sMessage)
 
virtual void setPyException () const
 Sets the Python error indicator and an error message. More...
 
virtual void setPyObject (PyObject *pydict)
 returns sets the exception data from a Python dictionary More...
 
void setReported (bool reported)
 
void setTranslatable (bool translatable)
 
virtual const char * what () const throw ()
 
virtual ~Exception () throw ()
 
- Public Member Functions inherited from Base::BaseClass
 BaseClass ()
 Construction. More...
 
 BaseClass (const BaseClass &)=default
 
virtual PyObjectgetPyObject ()
 This method returns the Python wrapper for a C++ object. More...
 
virtual Type getTypeId () const
 
bool isDerivedFrom (const Type type) const
 
BaseClassoperator= (const BaseClass &)=default
 
virtual void setPyObject (PyObject *)
 
virtual ~BaseClass ()
 Destruction. More...
 

Static Public Member Functions

static void * create (void)
 
static Base::Type getClassTypeId (void)
 
static void init (void)
 
- Static Public Member Functions inherited from Base::BaseClass
static void * create ()
 
static Type getClassTypeId ()
 
static void init ()
 

Protected Member Functions

 Exception ()
 
 Exception (const char *sMessage)
 
 Exception (const Exception &inst)
 
 Exception (const std::string &sMessage)
 

Additional Inherited Members

- Static Protected Member Functions inherited from Base::BaseClass
static void initSubclass (Base::Type &toInit, const char *ClassName, const char *ParentName, Type::instantiationMethod method=nullptr)
 

Constructor & Destructor Documentation

◆ ~Exception()

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

◆ Exception() [1/4]

Exception::Exception ( const char *  sMessage)
protected

◆ Exception() [2/4]

Exception::Exception ( const std::string &  sMessage)
protected

◆ Exception() [3/4]

Exception::Exception ( )
protected

◆ Exception() [4/4]

Exception::Exception ( const Exception inst)
protected

Member Function Documentation

◆ create()

void * Exception::create ( void  )
static

◆ getClassTypeId()

Base::Type Exception::getClassTypeId ( void  )
static

◆ getFile()

◆ getFunction()

std::string Exception::getFunction ( ) const

Referenced by getPyObject().

◆ getLine()

int Exception::getLine ( ) const

Referenced by getPyObject().

◆ getMessage()

std::string Exception::getMessage ( ) const

Referenced by getPyObject().

◆ getPyExceptionType()

◆ getPyObject()

PyObject * Exception::getPyObject ( void  )
virtual

returns a Python dictionary containing the exception data

Reimplemented from Base::BaseClass.

Reimplemented in Base::FileException.

References getFile(), getFunction(), getLine(), getMessage(), getTranslatable(), and what().

Referenced by Base::FileException::getPyObject().

◆ getReported()

bool Base::Exception::getReported ( ) const

◆ getTranslatable()

bool Exception::getTranslatable ( ) const

Referenced by getPyObject().

◆ getTypeId()

Base::Type Exception::getTypeId ( void  ) const
virtual

Reimplemented from Base::BaseClass.

◆ init()

void Exception::init ( void  )
static

◆ operator=()

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

◆ ReportException()

◆ setDebugInformation()

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

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

◆ setMessage() [1/2]

◆ setMessage() [2/2]

void Exception::setMessage ( const std::string &  sMessage)

◆ setPyException()

void Exception::setPyException ( ) const
virtual

Sets the Python error indicator and an error message.

Reimplemented in Base::PyException.

References getPyExceptionType(), Base::PyExc_FC_GeneralError, and what().

◆ setPyObject()

void Exception::setPyObject ( PyObject pydict)
virtual

returns sets the exception data from a Python dictionary

Reimplemented from Base::BaseClass.

Reimplemented in Base::FileException.

Referenced by Base::PyException::PyException(), and Base::FileException::setPyObject().

◆ setReported()

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

◆ setTranslatable()

void Exception::setTranslatable ( bool  translatable)

◆ what()


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