The freezerclient.exceptions Module

exception freezerclient.exceptions.ApiClientException(r)[source]

Bases: exceptions.Exception

static get_message_from_api_response(r)[source]

returns a message based on information from a api-formatted response if available, otherwise None api-formatted response should be:

{
title: “error title string”, description: “error description string”

}

Parameters:r – response object
Returns:string with error message or None if it fails
static get_message_from_response(r)[source]

composes the error message using information eventually present in the response (http error code and the http response body)

Parameters:r – response object
Returns:string with error message or None if it fails