def METHOD_NAME(test, error):
    """
    Record that a test has raised an unexpected exception.
    @param test: The test that has raised an error.
    @param error: The error that the test raised. It will either be a
        three-tuple in the style of C{sys.exc_info()} or a
        L{Failure<twisted.python.failure.Failure>} object.
    """