EvEmu  0.8.4
11 September 2021
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
PyException Class Reference

Base class for exceptions that can be converted to python objects. More...

#include "PyExceptions.h"

Inheritance diagram for PyException:
Collaboration diagram for PyException:

Public Member Functions

 PyException (PyRep *except)
 
 PyException (const PyException &oth)
 
 ~PyException ()
 
PyExceptionoperator= (const PyException &oth)
 

Public Attributes

PyRepssException
 

Detailed Description

Base class for exceptions that can be converted to python objects.

This exception can be used as a general purpose base class for any object that has a PyRep representation available.

Author
Unknown? Moved here by Almamu

Definition at line 39 of file PyExceptions.h.

Constructor & Destructor Documentation

PyException::PyException ( PyRep except)

Definition at line 33 of file PyExceptions.cpp.

33 : ssException( except != nullptr ? except : PyStatic.NewNone()) {}
#define PyStatic
Definition: PyRep.h:1209
PyRep * ssException
Definition: PyExceptions.h:48
PyException::PyException ( const PyException oth)

Definition at line 34 of file PyExceptions.cpp.

34 : ssException( nullptr ) { *this = oth; }
PyRep * ssException
Definition: PyExceptions.h:48
PyException::~PyException ( )

Definition at line 35 of file PyExceptions.cpp.

References PySafeDecRef, and ssException.

PyRep * ssException
Definition: PyExceptions.h:48
#define PySafeDecRef(op)
Definition: PyRep.h:61

Member Function Documentation

PyException & PyException::operator= ( const PyException oth)

Definition at line 37 of file PyExceptions.cpp.

References PySafeDecRef, PySafeIncRef, and ssException.

38 {
42 
43  return *this;
44 }
#define PySafeIncRef(op)
Definition: PyRep.h:60
PyRep * ssException
Definition: PyExceptions.h:48
#define PySafeDecRef(op)
Definition: PyRep.h:61

Member Data Documentation

PyRep* PyException::ssException

Definition at line 48 of file PyExceptions.h.

Referenced by PyCallable::Call(), operator=(), Client::ProcessNet(), and ~PyException().


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