|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.python.core.PyObject
org.python.core.PyBaseException
public class PyBaseException
The base class for all standard Python exceptions.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.python.core.PyObject |
---|
PyObject.ConversionException |
Field Summary | |
---|---|
PyObject |
__dict__
Exception's underlying dictionary, lazily created. |
PyObject |
args
Exception's arguments. |
PyObject |
message
Exception message. |
static PyType |
TYPE
|
Constructor Summary | |
---|---|
PyBaseException()
|
|
PyBaseException(PyType subType)
|
Method Summary | |
---|---|
PyObject |
__findattr_ex__(String name)
Attribute lookup hook. |
PyObject |
__getitem__(PyObject index)
Equivalent to the standard Python __getitem__ method. |
PyObject |
__getslice__(PyObject start,
PyObject stop)
|
void |
__init__(PyObject[] args,
String[] keywords)
|
PyObject |
__reduce__()
Used for pickling. |
void |
__setattr__(String name,
PyObject value)
A variant of the __setattr__ method which accepts a String as the key. |
PyObject |
__setstate__(PyObject state)
|
PyString |
__str__()
Equivalent to the standard Python __str__ method. |
void |
delMessage()
|
PyObject |
fastGetDict()
xxx implements where meaningful |
PyObject |
getDict()
xxx implements where meaningful |
void |
setArgs(PyObject val)
|
void |
setDict(PyObject val)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final PyType TYPE
public PyObject message
public PyObject args
public PyObject __dict__
Constructor Detail |
---|
public PyBaseException()
public PyBaseException(PyType subType)
Method Detail |
---|
public void __init__(PyObject[] args, String[] keywords)
public PyObject __getitem__(PyObject index)
PyObject
__finditem__
method instead.
__getitem__
in class PyObject
index
- the key to lookup in this container.
PyObject.__finditem__(PyObject)
public PyObject __getslice__(PyObject start, PyObject stop)
__getslice__
in class PyObject
public PyObject __reduce__()
PyObject
__reduce__
in class PyObject
public PyObject __setstate__(PyObject state)
public PyObject __findattr_ex__(String name)
PyObject
PyObject.__getattr__(String)
or
PyObject.__findattr__(String)
. Both methods have a clear policy for
failed lookups.
__findattr_ex__
in class PyObject
public void __setattr__(String name, PyObject value)
PyObject
__setattr__
in class PyObject
name
- the name whose value will be set -
must be an interned string .value
- the value to set this name toPyObject.__setattr__(PyString, PyObject)
public PyObject fastGetDict()
PyObject
fastGetDict
in class PyObject
public PyObject getDict()
PyObject
getDict
in class PyObject
public void setDict(PyObject val)
setDict
in class PyObject
public PyString __str__()
PyObject
PyObject
is to
override the standard Java toString
method.
__str__
in class PyObject
public String toString()
toString
in class PyObject
public void setArgs(PyObject val)
public void delMessage()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |