class documentation

class twisted.web.error.FlattenerError(Exception): (source)

View In Hierarchy

An error occurred while flattening an object.

Method __init__ Undocumented
Method __repr__ Present a string representation which includes a template traceback, so we can tell where this error occurred in the template, as well as in Python.
Method __str__ Undocumented
Instance Variable _roots A list of the objects on the flattener's stack at the time the unflattenable object was encountered. The first element is least deeply nested object and the last element is the most deeply nested.
Instance Variable _exception Undocumented
Instance Variable _traceback Undocumented
Method _formatRoot No summary
_roots = (source)
A list of the objects on the flattener's stack at the time the unflattenable object was encountered. The first element is least deeply nested object and the last element is the most deeply nested.
def __init__(self, exception, roots, traceback): (source)

Undocumented

_exception = (source)

Undocumented

_traceback = (source)

Undocumented

def _formatRoot(self, obj): (source)

Convert an object from self._roots to a string suitable for inclusion in a render-traceback (like a normal Python traceback, but can include "frame" source locations which are not in Python source files).

ParametersobjAny object which can be a render step root. Typically, Tags, strings, and other simple Python types.
ReturnsA string representation of obj. (type: str)
def __repr__(self): (source)

Present a string representation which includes a template traceback, so we can tell where this error occurred in the template, as well as in Python.

ReturnsUndocumented (type: str)
def __str__(self): (source)

Undocumented

ReturnsUndocumented (type: str)
API Documentation for Twisted, generated by pydoctor 20.12.1 at 2021-02-28 19:53:36.