Top Description Inners Fields Constructors
org.python.core

public Class KeyError

extends PyException
Class Inheritance
Known Direct Subclasses
org.python.core.KeyError.Duplicate
Imports
java.lang.invoke.MethodHandles

The Python KeyError exception.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
KeyError.Duplicate

A Python KeyError when the problem is a duplicate key.

Field Summary

Modifier and TypeField and Description
pack-priv final Object
key

The problematic key

private static final long
public static final PyType
TYPE

Hides org.python.core.PyException.TYPE.

The type object of Python KeyError exceptions.

Constructor Summary

AccessConstructor and Description
protected
KeyError(Object
causing the problem
key
,
PyType
of 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
KeyError(Object
causing the problem
key
,
String
a Java format string for the message
msg
,
Object...
to insert in the format string
args
)

Constructor specifying a key and a message.

Field Detail

keyback to summary
pack-priv final Object key

The problematic key

serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.python.core.PyException.serialVersionUID.

TYPEback to summary
public static final PyType TYPE

Hides org.python.core.PyException.TYPE.

The type object of Python KeyError exceptions.

Annotations
@SuppressWarnings:hiding

Constructor Detail

KeyErrorback to summary
protected KeyError(Object key, PyType type, String msg, Object... args)

Constructor for sub-class use specifying type.

Parameters
key:Object

causing the problem

type:PyType

of object being constructed

msg:String

a Java format string for the message

args:Object[]

to insert in the format string

KeyErrorback to summary
public KeyError(Object key, String msg, Object... args)

Constructor specifying a key and a message. A Java String form of the key will be the first argument formatted

Parameters
key:Object

causing the problem

msg:String

a Java format string for the message

args:Object[]

to insert in the format string

org.python.core back to summary

public Class KeyError.Duplicate

extends KeyError
Class Inheritance

A Python KeyError when the problem is a duplicate key. (This is the same Python type, but Java can catch it as a distinct type.)

Field Summary

Modifier and TypeField and Description
private static final long
Inherited from org.python.core.KeyError:
keyTYPE

Constructor Summary

AccessConstructor and Description
public

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.python.core.KeyError.serialVersionUID.

Constructor Detail

Duplicateback to summary
public Duplicate(Object key)