Exception: Aws::S3::EncryptionV3::Errors::NonCommittingDecryptionError

Inherits:
DecryptionError
  • Object
show all
Defined in:
lib/aws-sdk-s3/encryptionV3/errors.rb

Overview

Raised when attempting to decrypt a legacy (V1) encrypted object when using a security_profile that does not support it.

Instance Method Summary collapse

Constructor Details

#initialize(*_args) ⇒ NonCommittingDecryptionError

Returns a new instance of NonCommittingDecryptionError.



15
16
17
18
19
20
21
# File 'lib/aws-sdk-s3/encryptionV3/errors.rb', line 15

def initialize(*_args)
  msg = 'The requested object is ' \
    'was not encrypted with a committing algorithm ' \
    'and decryption is not supported under :require_encrypt_require_decrypt commitment policy. ' \
    'Change your commitment policy to :forbid_encrypt_allow_decrypt or :require_encrypt_allow_decrypt'
  super(msg)
end