Class exceptions

  • All Implemented Interfaces:
    java.io.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:
    Serialized Form
    • Field Detail

      • __doc__

        public static java.lang.String __doc__
    • Constructor Detail

      • exceptions

        public exceptions()
    • Method Detail

      • 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,
                                               java.lang.String[] kwargs)
      • SyntaxError__str__

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

        public static PyObject EnvironmentError()
      • EnvironmentError__init__

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

        public static PyObject EnvironmentError__str__​(PyObject self,
                                                       PyObject[] args,
                                                       java.lang.String[] kwargs)
      • EnvironmentError__reduce__

        public static PyObject EnvironmentError__reduce__​(PyObject self,
                                                          PyObject[] args,
                                                          java.lang.String[] kwargs)
      • SystemExit

        public static PyObject SystemExit()
      • SystemExit__init__

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

        public static PyObject KeyError()
      • KeyError__str__

        public static PyObject KeyError__str__​(PyObject self,
                                               PyObject[] args,
                                               java.lang.String[] kwargs)
      • UnicodeError

        public static PyObject UnicodeError()
      • UnicodeError__init__

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

        public static PyObject UnicodeDecodeError()
      • UnicodeDecodeError__init__

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

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

        public static PyObject UnicodeEncodeError()
      • UnicodeEncodeError__init__

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

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

        public static PyObject UnicodeTranslateError()
      • UnicodeTranslateError__init__

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

        public static PyString UnicodeTranslateError__str__​(PyObject self,
                                                            PyObject[] args,
                                                            java.lang.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,
                                         java.lang.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,
                                           java.lang.String name)
        Ensure a PyUnicode value for UnicodeErrors
        Parameters:
        attr - a PyObject
        name - of the attribute
        Returns:
        an PyUnicode
      • bindStaticJavaMethod

        public static PyObject bindStaticJavaMethod​(java.lang.String name,
                                                    java.lang.String methodName)
      • bindStaticJavaMethod

        public static PyObject bindStaticJavaMethod​(java.lang.String name,
                                                    java.lang.Class<?> cls,
                                                    java.lang.String methodName)