code.ExceptionInfo API [rev. 38799]

class ExceptionInfo(object):

wraps sys.exc_info() objects and offers help for navigating the traceback.

methods:

def __init__(self, tup=None, exprinfo=None):

*no docstring available*

def errisinstance(self, exc):

return True if the exception is an instance of exc

def exconly(self, tryshort=False):

return the exception as a string when 'tryshort' resolves to True, and the exception is a py.magic.AssertionError, only the actual exception part of the exception representation is returned (so 'AssertionError: ' is removed from the beginning)

def __str__(self):

*no docstring available*