Package com.chaquo.python
Class PyException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.chaquo.python.PyException
-
- All Implemented Interfaces:
Serializable
public class PyException extends RuntimeException
An exception thrown from Python to Java.
If the exception originated from Java, the original exception object can be retrieved by calling
getCause
.getStackTrace
will return a combined Python and Java stack trace, where Python frames will have a package name starting "<python>".- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PyException()
PyException(String s)
PyException(String s, Throwable throwable)
PyException(Throwable throwable)
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-