Exception: AWS::SQS::Errors::BatchSendError
- Inherits:
-
StandardError
- Object
- StandardError
- AWS::SQS::Errors::BatchSendError
- Defined in:
- lib/aws/sqs/errors.rb
Instance Attribute Summary collapse
-
#failures ⇒ Array<Hash>
readonly
Returns a list of hashes.
-
#sent ⇒ Array<Queue::SentMessage>
readonly
Returns a list of Queue::SentMessage objects.
Instance Method Summary collapse
-
#initialize(sent, failures) ⇒ BatchSendError
constructor
A new instance of BatchSendError.
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
#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
96 97 98 |
# File 'lib/aws/sqs/errors.rb', line 96 def failures @failures end |
#sent ⇒ Array<Queue::SentMessage> (readonly)
Returns a list of Queue::SentMessage objects.
85 86 87 |
# File 'lib/aws/sqs/errors.rb', line 85 def sent @sent end |