Class PyException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
PySyntaxError

public class PyException extends RuntimeException
A wrapper for all python exception. Note that the wellknown python exception are not subclasses of PyException. Instead the python exception class is stored in the type field and value or class instance is stored in the value field.
See Also:
  • Field Details

    • type

      public PyObject type
      The python exception class (for class exception) or identifier (for string exception).
    • value

      public PyObject value
      The exception instance (for class exception) or exception value (for string exception).
    • traceback

      public PyTraceback traceback
  • Constructor Details

  • Method Details