kodi
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
PythonBindings::PythonToCppException Class Reference

This exception is thrown from Director calls that call into python when the Python error is. More...

#include <swig.h>

Inheritance diagram for PythonBindings::PythonToCppException:
Inheritance graph
[legend]
Collaboration diagram for PythonBindings::PythonToCppException:
Collaboration graph
[legend]

Public Member Functions

 PythonToCppException ()
 Assuming a PyErr_Occurred, this will fill the exception message with all of the appropriate information including the traceback if it can be obtained. More...
 
 PythonToCppException (const std::string &exceptionType, const std::string &exceptionValue, const std::string &exceptionTraceback)
 

Static Public Member Functions

static bool ParsePythonException (std::string &exceptionType, std::string &exceptionValue, std::string &exceptionTraceback)
 

Protected Member Functions

void SetMessage (const std::string &exceptionType, const std::string &exceptionValue, const std::string &exceptionTraceback)
 

Detailed Description

This exception is thrown from Director calls that call into python when the Python error is.

Constructor & Destructor Documentation

◆ PythonToCppException()

PythonBindings::PythonToCppException::PythonToCppException ( )

Assuming a PyErr_Occurred, this will fill the exception message with all of the appropriate information including the traceback if it can be obtained.

It will also clear the python message.


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