Class exceptions

java.lang.Object
org.python.core.PyObject
org.python.core.exceptions
All Implemented Interfaces:
Serializable, ClassDictInit

public class exceptions extends PyObject implements ClassDictInit
The builtin exceptions module. The entire module should be imported from python. None of the methods defined here should be called from java.
See Also:
  • Field Details

    • __doc__

      public static String __doc__
  • Constructor Details

    • exceptions

      public exceptions()
  • Method Details

    • classDictInit

      public static void classDictInit(PyObject dict)
      Internal use only. Do not call this method explicit.
    • SyntaxError

      public static PyObject SyntaxError()
    • SyntaxError__init__

      public static void SyntaxError__init__(PyObject self, PyObject[] args, String[] kwargs)
    • SyntaxError__str__

      public static PyString SyntaxError__str__(PyObject self, PyObject[] arg, String[] kwargs)
    • EnvironmentError

      public static PyObject EnvironmentError()
    • EnvironmentError__init__

      public static void EnvironmentError__init__(PyObject self, PyObject[] args, String[] kwargs)
    • EnvironmentError__str__

      public static PyObject EnvironmentError__str__(PyObject self, PyObject[] args, String[] kwargs)
    • EnvironmentError__reduce__

      public static PyObject EnvironmentError__reduce__(PyObject self, PyObject[] args, String[] kwargs)
    • SystemExit

      public static PyObject SystemExit()
    • SystemExit__init__

      public static void SystemExit__init__(PyObject self, PyObject[] args, String[] kwargs)
    • KeyError

      public static PyObject KeyError()
    • KeyError__str__

      public static PyObject KeyError__str__(PyObject self, PyObject[] args, String[] kwargs)
    • UnicodeError

      public static PyObject UnicodeError()
    • UnicodeError__init__

      public static void UnicodeError__init__(PyObject self, PyObject[] args, String[] kwargs, PyType objectType)
    • UnicodeDecodeError

      public static PyObject UnicodeDecodeError()
    • UnicodeDecodeError__init__

      public static void UnicodeDecodeError__init__(PyObject self, PyObject[] args, String[] kwargs)
    • UnicodeDecodeError__str__

      public static PyString UnicodeDecodeError__str__(PyObject self, PyObject[] args, String[] kwargs)
    • UnicodeEncodeError

      public static PyObject UnicodeEncodeError()
    • UnicodeEncodeError__init__

      public static void UnicodeEncodeError__init__(PyObject self, PyObject[] args, String[] kwargs)
    • UnicodeEncodeError__str__

      public static PyString UnicodeEncodeError__str__(PyObject self, PyObject[] args, String[] kwargs)
    • UnicodeTranslateError

      public static PyObject UnicodeTranslateError()
    • UnicodeTranslateError__init__

      public static void UnicodeTranslateError__init__(PyObject self, PyObject[] args, String[] kwargs)
    • UnicodeTranslateError__str__

      public static PyString UnicodeTranslateError__str__(PyObject self, PyObject[] args, String[] kwargs)
    • getStart

      public static int getStart(PyObject self, boolean unicode)
      Determine the start position for UnicodeErrors.
      Parameters:
      self - a UnicodeError value
      unicode - whether the UnicodeError object should be unicode
      Returns:
      an the start position
    • getEnd

      public static int getEnd(PyObject self, boolean unicode)
      Determine the end position for UnicodeErrors.
      Parameters:
      self - a UnicodeError value
      unicode - whether the UnicodeError object should be unicode
      Returns:
      an the end position
    • getString

      public static PyString getString(PyObject attr, String name)
      Ensure a PyString value for UnicodeErrors
      Parameters:
      attr - a PyObject
      name - of the attribute
      Returns:
      an PyString
    • getUnicode

      public static PyUnicode getUnicode(PyObject attr, String name)
      Ensure a PyUnicode value for UnicodeErrors
      Parameters:
      attr - a PyObject
      name - of the attribute
      Returns:
      an PyUnicode
    • bindStaticJavaMethod

      public static PyObject bindStaticJavaMethod(String name, String methodName)
    • bindStaticJavaMethod

      public static PyObject bindStaticJavaMethod(String name, Class<?> cls, String methodName)