org.python.core

Class PyException

public class PyException extends RuntimeException

A wrapper for all python exception. Note that the wellknown python exception are not subclasses of PyException. Instead the python exception class is stored in the type field and value or class instance is stored in the value field.
Field Summary
PyTracebacktraceback
PyObjecttype
The python exception class (for class exception) or identifier (for string exception).
PyObjectvalue
The exception instance (for class exception) or exception value (for string exception).
Constructor Summary
PyException()
PyException(PyObject type)
PyException(PyObject type, PyObject value)
PyException(PyObject type, String value)
PyException(PyObject type, PyObject value, PyTraceback traceback)
Method Summary
voidinstantiate()
voidprintStackTrace()
voidprintStackTrace(PrintStream s)
voidsuper__printStackTrace(PrintWriter w)
StringtoString()

Field Detail

traceback

public PyTraceback traceback

type

public PyObject type
The python exception class (for class exception) or identifier (for string exception).

value

public PyObject value
The exception instance (for class exception) or exception value (for string exception).

Constructor Detail

PyException

public PyException()

PyException

public PyException(PyObject type)

PyException

public PyException(PyObject type, PyObject value)

PyException

public PyException(PyObject type, String value)

PyException

public PyException(PyObject type, PyObject value, PyTraceback traceback)

Method Detail

instantiate

public void instantiate()

printStackTrace

public void printStackTrace()

printStackTrace

public void printStackTrace(PrintStream s)

super__printStackTrace

public void super__printStackTrace(PrintWriter w)

toString

public String toString()