def _failure_to_exception_tuple(failure):
    """
    Convert a ``Failure`` to an exception 3-tuple.
    """
    return (
        failure.value.__class__,
        failure.value,
        failure.getBriefTraceback(),
    )