def format_exception(e):
    """ Returns a string which includes both exception-type and its str() """
    try:
        exception_str = str(e)
    except Exception:
        try:
            exception_str = repr(e)
        except Exception:
            exception_str = '(error formatting exception)'
    return '%s - %s' % (e.__class__.__name__, exception_str)