CloudControlApi / Client / exceptions / NetworkFailureException

NetworkFailureException#

class CloudControlApi.Client.exceptions.NetworkFailureException#

The resource handler has returned that the request couldn’t be completed due to networking issues, such as a failure to receive a response from the server.

Example

try:
  ...
except client.exceptions.NetworkFailureException as e:
  print(e.response)
response#

The parsed error response. All exceptions have a top level Error key that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.

Syntax

{
    'Message': 'string',
    'Error': {
        'Code': 'string',
        'Message': 'string'
    }
}

Structure

  • (dict) –

    The resource handler has returned that the request couldn’t be completed due to networking issues, such as a failure to receive a response from the server.

    • Message (string) –

    • Error (dict) – Normalized access to common exception attributes.

      • Code (string) – An identifier specifying the exception type.

      • Message (string) – A descriptive message explaining why the exception occured.