public class PyException
extends java.lang.RuntimeException
type
field and value or class instance is stored
in the value
field.Modifier and Type | Field and Description |
---|---|
PyTraceback |
traceback |
PyObject |
type
The python exception class (for class exception) or
identifier (for string exception).
|
PyObject |
value
The exception instance (for class exception) or exception
value (for string exception).
|
Constructor and Description |
---|
PyException() |
PyException(PyObject type) |
PyException(PyObject type,
PyObject value) |
PyException(PyObject type,
PyObject value,
PyTraceback traceback) |
PyException(PyObject type,
java.lang.String value) |
Modifier and Type | Method and Description |
---|---|
void |
instantiate() |
void |
printStackTrace() |
void |
printStackTrace(java.io.PrintStream s) |
void |
super__printStackTrace(java.io.PrintWriter w) |
java.lang.String |
toString() |
public PyObject type
public PyObject value
public PyTraceback traceback
public PyException()
public PyException(PyObject type)
public PyException(PyObject type, java.lang.String value)
public PyException(PyObject type, PyObject value, PyTraceback traceback)
public void instantiate()
public void printStackTrace()
printStackTrace
in class java.lang.Throwable
public void printStackTrace(java.io.PrintStream s)
printStackTrace
in class java.lang.Throwable
public void super__printStackTrace(java.io.PrintWriter w)
public java.lang.String toString()
toString
in class java.lang.Throwable