'String representation of the exception.'

def exception(self):

    buf = traceback.format_exception_only(self.exc_type, self.exc_value)
    rv = ''.join(buf).strip()
    return (rv.decode('utf-8', 'replace') if PY2 else rv)
