class documentation

class RichTraceback(object):

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`.

Instance Variable error Undocumented
Instance Variable lineno Undocumented
Instance Variable message Undocumented
Instance Variable records Undocumented
Instance Variable source Undocumented
Method __init__ Undocumented
Method ​_get​_reformatted​_records Undocumented
Method ​_init No summary
Method ​_init​_message Find a unicode representation of self.error
Instance Variable ​_has​_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.
error =

Undocumented

lineno =

Undocumented

message =

Undocumented

records =

Undocumented

source: str =

Undocumented

def __init__(self, error=None, traceback=None):

Undocumented

def _get_reformatted_records(self, records):

Undocumented

def _init(self, trcback):
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):
Find a unicode representation of self.error
_has_source: bool =

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.