(response_data)
Translates an error response into an exception.

    Args:
        response_data (Mapping): The decoded response data.

    Raises:
        google.auth.exceptions.RefreshError: The errors contained in response_data.
Translates an error response into an exception.
Translates an error response into an exception .
def _handle_error_response(response_data):
    """Translates an error response into an exception.

    Args:
        response_data (Mapping): The decoded response data.

    Raises:
        google.auth.exceptions.RefreshError: The errors contained in response_data.
    """
    try:
        error_details = "{}: {}".format(
            response_data["error"], response_data.get("error_description")
        )
    # If no details could be extracted, use the response data.
    except (KeyError, ValueError):
        error_details = json.dumps(response_data)

    raise exceptions.RefreshError(error_details, response_data)
def _handle_error_response ( response_data ) : try : error_details = "{}: {}" . format ( response_data [ "error" ] , response_data . get ( "error_description" ) ) # If no details could be extracted, use the response data. except ( KeyError , ValueError ) : error_details = json . dumps ( response_data ) raise exceptions . RefreshError ( error_details , response_data )