Exception: AWS::SQS::Errors::BatchDeleteError

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

Instance Method Summary collapse

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

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

Returns:

  • (Array<Hash>)

    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