Module t.p.failure

Part of twisted.python View Source

Asynchronous-friendly error mechanism.

See Failure.
Line # Kind Name Docs
26 Class DefaultException Undocumented
29 Function format_frames Format and write frames.
69 Class NoCurrentExceptionError Raised when trying to create a Failure from the current interpreter
121 Class Failure A basic abstraction for an error that has occurred.
550 Function startDebugMode Enable debug hooks for Failures.
76 Class _Traceback Fake traceback object which can be passed to functions in the standard
102 Class _Frame A fake frame object, used by _Traceback.
112 Class _Code A fake code object, used by _Traceback via _Frame.
540 Function _debuginit Undocumented
def format_frames(frames, write, detail='default'): (source)
Format and write frames.
Parametersframesis a list of frames as used by Failure.frames, with each frame being a list of (funcName, fileName, lineNumber, locals.items(), globals.items()) (type: list )
writethis will be called with formatted strings. (type: callable )
detailThree detail levels are available: default, brief, and verbose. (type: string )
def _debuginit(self, exc_value=None, exc_type=None, exc_tb=None, Failure__init__=Failure.__init__.im_func): (source)
Undocumented
def startDebugMode(): (source)
Enable debug hooks for Failures.
API Documentation for Twisted, generated by pydoctor at 2008-10-26 16:12:37.