NetworkManager / Client / exceptions / CoreNetworkPolicyException

CoreNetworkPolicyException#

class NetworkManager.Client.exceptions.CoreNetworkPolicyException#

Describes a core network policy exception.

Example

try:
  ...
except client.exceptions.CoreNetworkPolicyException 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',
    'Errors': [
        {
            'ErrorCode': 'string',
            'Message': 'string',
            'Path': 'string'
        },
    ],
    'Error': {
        'Code': 'string',
        'Message': 'string'
    }
}

Structure

  • (dict) –

    Describes a core network policy exception.

    • Message (string) –

    • Errors (list) –

      Describes a core network policy exception.

      • (dict) –

        Provides details about an error in a core network policy.

        • ErrorCode (string) –

          The error code associated with a core network policy error.

        • Message (string) –

          The message associated with a core network policy error code.

        • Path (string) –

          The JSON path where the error was discovered in the policy document.

    • 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.