rad  3.0.0
Public Member Functions | Protected Member Functions | List of all members
exmalif::ExceptionErrExc Class Reference

#include <ModExmalif.hpp>

Inheritance diagram for exmalif::ExceptionErrExc:

Public Member Functions

 ExceptionErrExc ()=default
 
 ExceptionErrExc (py::handle scope, const char *name, PyObject *base=PyExc_Exception)
 
void operator() (const ::exmalif::ExceptionErr &e)
 
::elt::mal::bindings::MalPythonExceptionObjectPtr cpp_exception_factory (py::object arguments)
 
void throw_cpp_exception () override
 

Protected Member Functions

void AttachMethods ()
 

Constructor & Destructor Documentation

◆ ExceptionErrExc() [1/2]

exmalif::ExceptionErrExc::ExceptionErrExc ( )
default

◆ ExceptionErrExc() [2/2]

exmalif::ExceptionErrExc::ExceptionErrExc ( py::handle  scope,
const char *  name,
PyObject *  base = PyExc_Exception 
)
inline

Constructor, registers itself as python exception class under provided name in provided scope. Attaches user accessible methods to itself dynamically

Parameters
scopepybind scope to attach new Python exception class to
namename of the Python exception class
basepointer to Python object that is base class for this exception class (Python exception hirearchy)

Member Function Documentation

◆ AttachMethods()

void exmalif::ExceptionErrExc::AttachMethods ( )
inlineprotected

Attaches Python methods to self

◆ cpp_exception_factory()

::elt::mal::bindings::MalPythonExceptionObjectPtr exmalif::ExceptionErrExc::cpp_exception_factory ( py::object  arguments)
inline

◆ operator()()

void exmalif::ExceptionErrExc::operator() ( const ::exmalif::ExceptionErr e)
inline

◆ throw_cpp_exception()

void exmalif::ExceptionErrExc::throw_cpp_exception ( )
inlineoverride

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