Package sanskrit

Class PyError

All Implemented Interfaces:
Serializable

public final class PyError extends RuntimeException
A Python exception travelling through Java code. It carries no Java stack trace.
See Also:
  • Method Details

    • getFile

      public String getFile()
      The file name of the innermost Python frame (where the exception was raised), or null.
    • getLine

      public int getLine()
      The line, in getFile(), of the innermost Python frame; 0 if there is none.
    • typeName

      public String 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

      public String text()
      The text of the exception, as str(e) gives it.
    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class Throwable