Exception: AWS::SQS::Errors::BatchChangeVisibilityError
- Inherits:
-
StandardError
- Object
- StandardError
- AWS::SQS::Errors::BatchChangeVisibilityError
- Defined in:
- lib/aws/sqs/errors.rb
Overview
Raised from a batch change message visibility call when one or more of the updates fail.
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) ⇒ BatchChangeVisibilityError
constructor
A new instance of BatchChangeVisibilityError.
Constructor Details
#initialize(failures) ⇒ BatchChangeVisibilityError
Returns a new instance of BatchChangeVisibilityError.
57 58 59 60 |
# File 'lib/aws/sqs/errors.rb', line 57 def initialize failures @failures = failures super("Failed to change visibility for #{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 change visibility. Hash keys include:
-
:error_code
-
:error_message
-
:sender_fault
-
:receipt_handle
71 72 73 |
# File 'lib/aws/sqs/errors.rb', line 71 def failures @failures end |