class documentation

class RichTraceback: (source)

View In Hierarchy

Pull the current exception from the ``sys`` traceback and extracts Mako-specific template information. See the usage examples in :ref:`handling_exceptions`.

Method __init__ Undocumented
Instance Variable error Undocumented
Instance Variable lineno Undocumented
Instance Variable message Undocumented
Instance Variable records Undocumented
Instance Variable source Undocumented
Property errorname Undocumented
Property reverse_records Undocumented
Property reverse_traceback Return the same data as traceback, except in reverse order.
Property traceback Return a list of 4-tuple traceback records (i.e. normal python format) with template-corresponding lines remapped to the originating template.
Method _get_reformatted_records Undocumented
Method _init format a traceback from sys.exc_info() into 7-item tuples, containing the regular four traceback tuple items, plus the original template filename, the line number adjusted relative to the template source, and code line from that line number of the template.
Method _init_message Find a unicode representation of self.error
Instance Variable _has_source Undocumented
def __init__(self, error=None, traceback=None): (source)

Undocumented

Undocumented

Undocumented

Undocumented

Undocumented

Undocumented

Undocumented

@property
reverse_records = (source)

Undocumented

@property
reverse_traceback = (source)

Return the same data as traceback, except in reverse order.

Return a list of 4-tuple traceback records (i.e. normal python format) with template-corresponding lines remapped to the originating template.

def _get_reformatted_records(self, records): (source)

Undocumented

def _init(self, trcback): (source)

format a traceback from sys.exc_info() into 7-item tuples, containing the regular four traceback tuple items, plus the original template filename, the line number adjusted relative to the template source, and code line from that line number of the template.

def _init_message(self): (source)

Find a unicode representation of self.error

_has_source: bool = (source)

Undocumented