Error data.
|
__init__(self,
code,
message)
Create an error object. |
|
|
|
set(self,
code,
message)
Set the error information. |
|
|
|
code(self)
Get the error code. |
|
|
|
name(self)
Get the readable string of the code. |
|
|
|
message(self)
Get the supplement message. |
|
|
|
__repr__(self)
Get the representing expression. |
|
|
|
__str__(self)
Get the string expression. |
|
|
|
__cmp__(self,
right)
Generic comparison operator. |
|
|
|
SUCCESS = 0
error code: success.
|
|
NOIMPL = 1
error code: not implemented.
|
|
INVALID = 2
error code: invalid operation.
|
|
NOREPOS = 3
error code: no repository.
|
|
NOPERM = 4
error code: no permission.
|
|
BROKEN = 5
error code: broken file.
|
|
DUPREC = 6
error code: record duplication.
|
|
NOREC = 7
error code: no record.
|
|
LOGIC = 8
error code: logical inconsistency.
|
|
SYSTEM = 9
error code: system error.
|
|
MISC = 15
error code: miscellaneous error.
|