Package sanskrit
Class PyError
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
sanskrit.PyError
- All Implemented Interfaces:
Serializable
A Python exception travelling through Java code. It carries no Java stack trace.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetFile()The file name of the innermost Python frame (where the exception was raised), or null.intgetLine()The line, ingetFile(), of the innermost Python frame; 0 if there is none.text()The text of the exception, as str(e) gives it.typeName()The name of the exception class, as CPython's traceback prints it: "ValueError", "MyError" for a class of the diagram, "palette.MyError" for a class of a module.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
getFile
The file name of the innermost Python frame (where the exception was raised), or null. -
getLine
public int getLine()The line, ingetFile(), of the innermost Python frame; 0 if there is none. -
typeName
The name of the exception class, as CPython's traceback prints it: "ValueError", "MyError" for a class of the diagram, "palette.MyError" for a class of a module. -
text
The text of the exception, as str(e) gives it. -
getMessage
- Overrides:
getMessagein classThrowable
-