A basic abstraction for an error that has occurred.
This is necessary because Python's built-in error mechanisms are
inconvenient for asynchronous communication.
|
|
__init__(self,
exc_value=None,
exc_type=None,
exc_tb=None)
Initialize me with an explanation of the error. |
|
|
|
|
trap(self,
*errorTypes)
Trap this failure if its type is in a predetermined list. |
|
|
|
|
check(self,
*errorTypes)
Check if this failure's type is in a predetermined list. |
|
|
|
|
raiseException(self)
raise the original exception, preserving traceback information if
available. |
|
|
|
|
throwExceptionIntoGenerator(self,
g)
Throw the original exception into the given generator, preserving
traceback information if available. |
|
|
|
|
|
|
|
|
|
|
__getstate__(self)
Avoid pickling objects in the traceback. |
|
|
|
|
cleanFailure(self)
Remove references to other objects, replacing them with strings. |
|
|
|
|
getTracebackObject(self)
Get an object that represents this Failure's stack that can be passed
to traceback.extract_tb. |
|
|
|
|
getErrorMessage(self)
Get a string of the exception which caused this Failure. |
|
|
|
|
|
|
|
getTraceback(self,
elideFrameworkCode=0,
detail='default') |
|
|
|
|
printTraceback(self,
file=None,
elideFrameworkCode=0,
detail='default')
Emulate Python's standard error reporting mechanism. |
|
|
|
|
printBriefTraceback(self,
file=None,
elideFrameworkCode=0)
Print a traceback as densely as possible. |
|
|
|
|
printDetailedTraceback(self,
file=None,
elideFrameworkCode=0)
Print a traceback with detailed locals and globals information. |
|
|
|
|
__providedBy__(...)
Object Specification Descriptor |
|
|