format_exception(t, v, tb, limit=None, as_html=False, with_filenames=False)
Format a stack trace and the exception information.
Similar to traceback.format_exception
, but adds supplemental
information to the traceback and accepts two options, as_html
and with_filenames
.