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