jinja2.Environment.handle_exception

Environment.handle_exception(exc_info=None, rendered=False, source_hint=None)[source]

Exception handling helper. This is used internally to either raise rewritten exceptions or return a rendered traceback for the template.