Exception: AWS::SQS::Errors::BatchChangeVisibilityError

Inherits:
StandardError
  • Object
show all
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

Instance Method Summary collapse

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

#failuresArray<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

Returns:

  • (Array<Hash>)

    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