KeyError exception.
| Modifier and Type | Class and Description |
|---|---|
| public static class | KeyError.Duplicate
A Python |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Object | key
The problematic key |
| private static final long | |
| public static final PyType |
| Access | Constructor and Description |
|---|---|
| protected | |
| public |
| key | back to summary |
|---|---|
| pack-priv final Object key The problematic key | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| TYPE | back to summary |
|---|---|
| public static final PyType TYPE Hides org. The type object of Python
| |
| KeyError | back to summary |
|---|---|
| protected KeyError(Object key, PyType type, String msg, Object... args) Constructor for sub-class use specifying | |
| KeyError | back 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 | |
KeyError when the problem is a duplicate key.
(This is the same Python type, but Java can catch it as a
distinct type.)
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| Duplicate | back to summary |
|---|---|
| public Duplicate(Object key) | |