A compact unique representation of an error.

def _error_repr(error):
    """A compact unique representation of an error."""
    error_repr = repr(error)
    if len(error_repr) > 200:
        error_repr = hash(type(error))
    return error_repr