java.io.Serializable
PySyntaxError
public class PyException
extends java.lang.RuntimeException
type
field and value or class instance is stored
in the value
field.Modifier and Type | Field | 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 | Description |
---|---|
PyException() |
|
PyException(PyObject type) |
|
PyException(PyObject type,
java.lang.String value) |
|
PyException(PyObject type,
PyObject value) |
|
PyException(PyObject type,
PyObject value,
PyTraceback traceback) |
Modifier and Type | Method | 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