HTMLForException

HTMLForException.py

Create HTML for exceptions.

WebUtils.HTMLForException.HTMLForException(excInfo=None, options=None)

Get HTML for displaying an exception.

Returns an HTML string that presents useful information to the developer about the exception. The first argument is a tuple such as returned by sys.exc_info() which is in fact invoked if the tuple isn’t provided.

WebUtils.HTMLForException.HTMLForLines(lines, options=None)

Create HTML for exceptions and tracebacks from a list of strings.

WebUtils.HTMLForException.HTMLForStackTrace(frame=None, options=None)

Get HTML for displaying a stack trace.

Returns an HTML string that presents useful information to the developer about the stack. The first argument is a stack frame such as returned by sys._getframe() which is in fact invoked if a stack frame isn’t provided.

WebUtils.HTMLForException.htmlForException(excInfo=None, options=None)

Get HTML for displaying an exception.

Returns an HTML string that presents useful information to the developer about the exception. The first argument is a tuple such as returned by sys.exc_info() which is in fact invoked if the tuple isn’t provided.

WebUtils.HTMLForException.htmlForLines(lines, options=None)

Create HTML for exceptions and tracebacks from a list of strings.

WebUtils.HTMLForException.htmlForStackTrace(frame=None, options=None)

Get HTML for displaying a stack trace.

Returns an HTML string that presents useful information to the developer about the stack. The first argument is a stack frame such as returned by sys._getframe() which is in fact invoked if a stack frame isn’t provided.