Top Description Fields Constructors Methods
org.python.core

public Class PyException

extends BaseException
Class Inheritance
Known Direct Subclasses
org.python.core.StopIteration, org.python.core.SystemError, org.python.core.TypeError, org.python.core.ValueError, org.python.core.NameError, org.python.core.ArithmeticError, org.python.core.AttributeError, org.python.core.EOFError, org.python.core.IndexError, org.python.core.KeyError, org.python.core.LookupError, org.python.core.MemoryError, org.python.core.OSError
Imports
java.lang.invoke.MethodHandles

The Python Exception exception.

Field Summary

Modifier and TypeField and Description
private static final long
pack-priv static final PyType
TYPE

Hides org.python.core.BaseException.TYPE.

The type of Python object this class implements.
Inherited from org.python.core.BaseException:
args

Constructor Summary

AccessConstructor and Description
protected
PyException(PyType
object being constructed
type
,
String
a Java format string for the message
msg
,
Object...
to insert in the format string
args
)

Constructor for sub-class use specifying type.

public
PyException(String
a Java format string for the message
msg
,
Object...
to insert in the format string
args
)

Constructor specifying a message.

Method Summary

Inherited from org.python.core.BaseException:
__repr__getTypetoString

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.python.core.BaseException.serialVersionUID.

TYPEback to summary
pack-priv static final PyType TYPE

Hides org.python.core.BaseException.TYPE.

The type of Python object this class implements.

Constructor Detail

PyExceptionback to summary
protected PyException(PyType type, String msg, Object... args)

Constructor for sub-class use specifying type.

Parameters
type:PyType

object being constructed

msg:String

a Java format string for the message

args:Object[]

to insert in the format string

PyExceptionback to summary
public PyException(String msg, Object... args)

Constructor specifying a message.

Parameters
msg:String

a Java format string for the message

args:Object[]

to insert in the format string