jinja2.debug

jinja2.debug

Implements the debug interface for Jinja. This module does some pretty ugly stuff with the Python traceback system in order to achieve tracebacks with correct line numbers, locals and contents.

copyright:
  1. 2010 by the Jinja Team.
license:

BSD, see LICENSE for more details.

Classes

ProcessedTraceback Holds a Jinja preprocessed traceback for priting or reraising.
TracebackFrameProxy Proxies a traceback frame.

Exceptions

TemplateSyntaxError(message, lineno[, name, ...]) Raised to tell the user that there is a problem with the template.

Functions

fake_exc_info(exc_info, filename, lineno) Helper for translate_exception.
make_frame_proxy(frame)
make_traceback(exc_info[, source_hint]) Creates a processed traceback object from the exc_info.
tb_set_next(tb, next) Set the tb_next attribute of a traceback object.
translate_exception(exc_info[, initial_skip]) If passed an exc_info it will automatically rewrite the exceptions
translate_syntax_error(error[, source]) Rewrites a syntax error to please traceback systems.

Defined

  • CodeType
  • TracebackType
  • internal_code
  • missing
  • raise_helper
  • sys
  • tproxy
  • traceback

Table Of Contents

Previous topic

jinja2.constants

Next topic

ProcessedTraceback Class