Base::ZeroDivisionError Class Reference

The ZeroDivisionError can be used to indicate a division by zero. More...

#include <Exception.h>

Public Member Functions

PyObjectgetPyExceptionType () const override
 returns the corresponding python exception type More...
 
 ZeroDivisionError ()
 Construction. More...
 
 ZeroDivisionError (const char *sMessage)
 
 ZeroDivisionError (const std::string &sMessage)
 
virtual ~ZeroDivisionError () throw ()
 Destruction. More...
 
- Public Member Functions inherited from Base::Exception
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...
 

Additional Inherited Members

- Static Public Member Functions inherited from Base::Exception
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 inherited from Base::Exception
 Exception ()
 
 Exception (const char *sMessage)
 
 Exception (const Exception &inst)
 
 Exception (const std::string &sMessage)
 
- Static Protected Member Functions inherited from Base::BaseClass
static void initSubclass (Base::Type &toInit, const char *ClassName, const char *ParentName, Type::instantiationMethod method=nullptr)
 

Detailed Description

The ZeroDivisionError can be used to indicate a division by zero.

Author
Werner Mayer

Constructor & Destructor Documentation

◆ ZeroDivisionError() [1/3]

ZeroDivisionError::ZeroDivisionError ( )

Construction.

◆ ZeroDivisionError() [2/3]

ZeroDivisionError::ZeroDivisionError ( const char *  sMessage)

◆ ZeroDivisionError() [3/3]

ZeroDivisionError::ZeroDivisionError ( const std::string &  sMessage)

◆ ~ZeroDivisionError()

virtual Base::ZeroDivisionError::~ZeroDivisionError ( )
throw (
)
virtual

Destruction.

Member Function Documentation

◆ getPyExceptionType()

PyObject * ZeroDivisionError::getPyExceptionType ( void  ) const
overridevirtual

returns the corresponding python exception type

Reimplemented from Base::Exception.


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