Asynchronous-friendly error mechanism.
|Function||format_frames||Format and write frames.|
|Class||NoCurrentExceptionError||Raised when trying to create a Failure from the current interpreter exception state and there is no current exception state.|
|Class||Failure||A basic abstraction for an error that has occurred.|
|Function||startDebugMode||Enable debug hooks for Failures.|
|Class||_TracebackFrame||Fake traceback object which can be passed to functions in the standard
|Class||_Frame||A fake frame object, used by
|Class||_Code||A fake code object, used by
|Function||_extraneous||Mark the given callable as extraneous to inlineCallbacks exception reporting; don't show these functions.|
|Function||_safeReprVars||Convert a list of (name, object) pairs into (name, repr) pairs.|
|Function||_debuginit||Initialize failure object, possibly spawning pdb.|
Format and write frames.
|Parameters||frames||is 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)|
|write||this will be called with formatted strings. (type: callable)|
|detail||Four detail levels are available: default, brief, verbose, and
Construct a fake traceback object using a list of frames. Note that although frames generally include locals and globals, this information is not kept by this method, since locals and globals are not used in standard tracebacks.
|Parameters||stackFrames||[(methodname, filename, lineno, locals, globals), ...]|
|tbFrames||[(methodname, filename, lineno, locals, globals), ...]|
Mark the given callable as extraneous to inlineCallbacks exception reporting; don't show these functions.
|Parameters||f||a function that you NEVER WANT TO SEE AGAIN in ANY TRACEBACK reported by Failure. (type: function)|
Convert a list of (name, object) pairs into (name, repr) pairs.
is used to generate the repr, so no exceptions will be raised by faulty
|Parameters||varsDictItems||a sequence of (name, value) pairs as returned by e.g.
|Returns||a sequence of (name, repr) pairs.|
Initialize failure object, possibly spawning pdb.
Enable debug hooks for Failures.