Exception: AWS::SQS::Errors::BatchDeleteError
- Inherits:
-
StandardError
- Object
- StandardError
- AWS::SQS::Errors::BatchDeleteError
- Defined in:
- lib/aws/sqs/errors.rb
Overview
Raised when one or more messages fail to delete during a batch delete operation.
See #failures for a complete list of failures.
Instance Attribute Summary collapse
-
#failures ⇒ Array<Hash>
readonly
Returns a list of hashes.
Instance Method Summary collapse
-
#initialize(failures) ⇒ BatchDeleteError
constructor
A new instance of BatchDeleteError.
Constructor Details
#initialize(failures) ⇒ BatchDeleteError
Returns a new instance of BatchDeleteError.
32 33 34 35 |
# File 'lib/aws/sqs/errors.rb', line 32 def initialize failures @failures = failures super("Failed to delete #{failures.size} messages") end |
Instance Attribute Details
#failures ⇒ Array<Hash> (readonly)
Returns a list of hashes. Each hash contains information about one message that failed to delete. Hash keys include:
:error_code
:error_message
:sender_fault
:receipt_handle
46 47 48 |
# File 'lib/aws/sqs/errors.rb', line 46 def failures @failures end |