class documentation

class FailureElement(Element):

Constructor: FailureElement(failure, loader)

View In Hierarchy

FailureElement is an IRenderable which can render detailed information about a Failure.

Present Since
12.1
Method __init__ Undocumented
Method traceback Render all the frames in the wrapped Failure's traceback stack, replacing tag.
Method type Render the exception type as a child of tag.
Method value Render the exception value as a child of tag.
Instance Variable failure The Failure instance which will be rendered.
Instance Variable loader Undocumented

Inherited from Element:

Method lookupRenderMethod Look up and return the named render method.
Method render Implement IRenderable to allow one Element to be embedded in another's template or rendering output.
def __init__(self, failure, loader=None):

Undocumented

@renderer
def traceback(self, request, tag):

Render all the frames in the wrapped Failure's traceback stack, replacing tag.

@renderer
def type(self, request, tag):

Render the exception type as a child of tag.

@renderer
def value(self, request, tag):

Render the exception value as a child of tag.

failure =

The Failure instance which will be rendered.

loader =

Undocumented