com.xiaopy.python.PyException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of chaquopy_java Show documentation
Show all versions of chaquopy_java Show documentation
The Python SDK for Android
package com.xiaopy.python;
/** An exception thrown from Python to Java.
*
* If the exception originated from Java, the original exception object can be retrieved by
* calling {@link #getCause getCause}.
*
* {@link #getStackTrace getStackTrace} will return a combined Python and Java stack trace,
* where Python frames will have a package name starting "<python>".
*/
// Has to be unchecked because it can be thrown by virtually all the methods in this package,
// including those inherited from Map which we can't add "throws" declarations to.
//
// TODO #5273 make exception PyObject accessible from PyException.
public class PyException extends RuntimeException {
public PyException() {
}
public PyException(String s) {
super(s);
}
public PyException(String s, Throwable throwable) {
super(s, throwable);
}
public PyException(Throwable throwable) {
super(throwable);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy