FSx / Client / exceptions / ActiveDirectoryError

ActiveDirectoryError#

class FSx.Client.exceptions.ActiveDirectoryError#

An Active Directory error.

Example

try:
  ...
except client.exceptions.ActiveDirectoryError 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

{
    'ActiveDirectoryId': 'string',
    'Type': 'DOMAIN_NOT_FOUND'|'INCOMPATIBLE_DOMAIN_MODE'|'WRONG_VPC'|'INVALID_DOMAIN_STAGE',
    'Message': 'string',
    'Error': {
        'Code': 'string',
        'Message': 'string'
    }
}

Structure

  • (dict) –

    An Active Directory error.

    • ActiveDirectoryId (string) –

      The directory ID of the directory that an error pertains to.

    • Type (string) –

      The type of Active Directory error.

    • Message (string) –

      A detailed error message.

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