Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
PythonBindings::PythonToCppException Class Reference

#include <swig.h>

Inheritance diagram for PythonBindings::PythonToCppException:

Public Member Functions

 PythonToCppException ()
 
 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() [1/2]

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.

◆ PythonToCppException() [2/2]

PythonBindings::PythonToCppException::PythonToCppException ( const std::string & exceptionType,
const std::string & exceptionValue,
const std::string & exceptionTraceback )

Member Function Documentation

◆ ParsePythonException()

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

◆ SetMessage()

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

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