def METHOD_NAME(result: Any) -> bool:
    """
    Returns True if the current exception is an error, i.e. should be
    considered a failure of the integration run.
    """
    if isinstance(result, SystemExit):
        return result.args[0] != ExitCodes.SUCCESS and result.code is not False
    return isinstance(result, BaseException)