The web.error.info() function returns a representation of the error raised according to the options specified. If no options are specified an HTML debug representation is returned.
The parameters used in the web.error.info() can also be used in the web.error.handle() function to describe how the handled error should be displayed.
Below is the API reference for the web.error.info().
[error], [context=5]) |
Return a string representing the error according to parameters specified.
'traceback'
for a traceback, 'code'
for a code listing or 'debug'
for code and traceback listing suitable for script debugging. If not specified info() returns a ErrorInformation
object.
'text'
or 'html'
.
sys.exc_info()
. If not specified sys.exc_info()
(which contains the current traceback information) is used.
5
.