Standard error classes and utilities.
def exlocstr(exinfo = None):
Creates a stack trace from the given exception info (should be the returned from sys.exc_info(), the value of the current exception info is used if none is supplied).
Returns the stack trace represented as a multi-line string.