11#ifndef PythonMonkey_ExceptionType_
12#define PythonMonkey_ExceptionType_
31 static PyObject *
getPyObject(JSContext *cx, JS::HandleObject error);
40 static JSObject *
toJsError(JSContext *cx, PyObject *exceptionValue, PyObject *traceBack);
This struct represents a Python Exception object from the corresponding JS Error object.
Definition ExceptionType.hh:21
static JSObject * toJsError(JSContext *cx, PyObject *exceptionValue, PyObject *traceBack)
Convert a python Exception object to a JS Error object.
Definition ExceptionType.cc:81
static PyObject * getPyObject(JSContext *cx, JS::HandleObject error)
Construct a new SpiderMonkeyError from the JS Error object.
Definition ExceptionType.cc:27