aws_encryption_sdk.exceptions

Contains exception classes for AWS Encryption SDK.

Exceptions

AWSEncryptionSDKClientError

General exception class for AWS Encryption SDK.

ActionNotAllowedError

Exception class for errors encountered when attempting to perform unallowed actions.

CacheError

General exception class for materials caches.

CacheKeyError

Exception class for CryptoCache key misses.

ConfigMismatchError

Exception class for errors encountered when the wrong type of config is passed to an object.

CustomMaximumValueExceeded

Exception class for use when values are found which exceed user-defined custom maximum values.

DecryptKeyError

Exception class for errors encountered when MasterKeys try to decrypt data keys.

EncryptKeyError

Exception class for errors encountered when MasterKeys try to encrypt data keys.

GenerateKeyError

Exception class for errors encountered when MasterKeys try to generate data keys.

IncorrectMasterKeyError

Exception class for operations attempted against the incorrect Master Key.

InvalidAlgorithmError

Exception class for Invalid Algorithm definitions.

InvalidDataKeyError

Exception class for Invalid Data Keys.

InvalidKeyIdError

Exception class for Invalid Key IDs.

InvalidProviderIdError

Exception class for Invalid Provider IDs.

MalformedArnError

Exception class for errors encountered when attempting to parse an Amazon Resource Name (ARN).

MasterKeyError

Exception class for Master Keys.

MasterKeyProviderError

Exception class for Master Key Providers.

MaxEncryptedDataKeysExceeded(num_keys, max_keys)

Exception class for use when a message or encryption materials contain more encrypted data keys than a configured maximum value.

NotSupportedError

Exception class for unsupported identities or operations.

SerializationError

Exception class for serialization/deserialization errors.

UnknownIdentityError

Exception class for unknown identity errors.

UnknownRegionError

Exception class for errors encountered when attempting to process unknown regions or region names.

exception aws_encryption_sdk.exceptions.AWSEncryptionSDKClientError

Bases: Exception

General exception class for AWS Encryption SDK.

exception aws_encryption_sdk.exceptions.SerializationError

Bases: AWSEncryptionSDKClientError

Exception class for serialization/deserialization errors.

exception aws_encryption_sdk.exceptions.CustomMaximumValueExceeded

Bases: SerializationError

Exception class for use when values are found which exceed user-defined custom maximum values.

exception aws_encryption_sdk.exceptions.MaxEncryptedDataKeysExceeded(num_keys, max_keys)

Bases: CustomMaximumValueExceeded

Exception class for use when a message or encryption materials contain more encrypted data keys than a configured maximum value.

Prepares exception message.

exception aws_encryption_sdk.exceptions.UnknownIdentityError

Bases: AWSEncryptionSDKClientError

Exception class for unknown identity errors.

exception aws_encryption_sdk.exceptions.NotSupportedError

Bases: AWSEncryptionSDKClientError

Exception class for unsupported identities or operations.

exception aws_encryption_sdk.exceptions.MasterKeyProviderError

Bases: AWSEncryptionSDKClientError

Exception class for Master Key Providers.

exception aws_encryption_sdk.exceptions.MasterKeyError

Bases: AWSEncryptionSDKClientError

Exception class for Master Keys.

exception aws_encryption_sdk.exceptions.InvalidAlgorithmError

Bases: AWSEncryptionSDKClientError

Exception class for Invalid Algorithm definitions.

exception aws_encryption_sdk.exceptions.InvalidKeyIdError

Bases: AWSEncryptionSDKClientError

Exception class for Invalid Key IDs.

exception aws_encryption_sdk.exceptions.InvalidDataKeyError

Bases: AWSEncryptionSDKClientError

Exception class for Invalid Data Keys.

exception aws_encryption_sdk.exceptions.InvalidProviderIdError

Bases: AWSEncryptionSDKClientError

Exception class for Invalid Provider IDs.

exception aws_encryption_sdk.exceptions.IncorrectMasterKeyError

Bases: AWSEncryptionSDKClientError

Exception class for operations attempted against the incorrect Master Key.

exception aws_encryption_sdk.exceptions.GenerateKeyError

Bases: AWSEncryptionSDKClientError

Exception class for errors encountered when MasterKeys try to generate data keys.

exception aws_encryption_sdk.exceptions.EncryptKeyError

Bases: AWSEncryptionSDKClientError

Exception class for errors encountered when MasterKeys try to encrypt data keys.

exception aws_encryption_sdk.exceptions.DecryptKeyError

Bases: AWSEncryptionSDKClientError

Exception class for errors encountered when MasterKeys try to decrypt data keys.

exception aws_encryption_sdk.exceptions.ActionNotAllowedError

Bases: AWSEncryptionSDKClientError

Exception class for errors encountered when attempting to perform unallowed actions.

exception aws_encryption_sdk.exceptions.ConfigMismatchError

Bases: AWSEncryptionSDKClientError

Exception class for errors encountered when the wrong type of config is passed to an object.

exception aws_encryption_sdk.exceptions.UnknownRegionError

Bases: AWSEncryptionSDKClientError

Exception class for errors encountered when attempting to process unknown regions or region names.

exception aws_encryption_sdk.exceptions.MalformedArnError

Bases: AWSEncryptionSDKClientError

Exception class for errors encountered when attempting to parse an Amazon Resource Name (ARN).

exception aws_encryption_sdk.exceptions.CacheError

Bases: AWSEncryptionSDKClientError

General exception class for materials caches.

New in version 1.3.0.

exception aws_encryption_sdk.exceptions.CacheKeyError

Bases: CacheError

Exception class for CryptoCache key misses.

New in version 1.3.0.

This exception is meant to mirror KeyError but in the context of a CryptoCache.