Exception: AWS::SQS::Errors::BatchSendError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/aws/sqs/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(sent, failures) ⇒ BatchSendError

Returns a new instance of BatchSendError.



77
78
79
80
81
# File 'lib/aws/sqs/errors.rb', line 77

def initialize sent, failures
  @sent = sent
  @failures = failures
  super("Failed to send #{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



96
97
98
# File 'lib/aws/sqs/errors.rb', line 96

def failures
  @failures
end

#sentArray<Queue::SentMessage> (readonly)

Returns a list of Queue::SentMessage objects.

Returns:



85
86
87
# File 'lib/aws/sqs/errors.rb', line 85

def sent
  @sent
end