You are viewing documentation for version 1 of the AWS SDK for Ruby. Version 2 documentation can be found here.
Exception: AWS::SQS::Errors::ChecksumError
- Inherits:
-
StandardError
- Object
- StandardError
- AWS::SQS::Errors::ChecksumError
- Defined in:
- lib/aws/sqs/errors.rb
Instance Attribute Summary collapse
-
#failures ⇒ Object
readonly
Returns the value of attribute failures.
Instance Method Summary collapse
-
#initialize(failures) ⇒ ChecksumError
constructor
A new instance of ChecksumError.
Constructor Details
#initialize(failures) ⇒ ChecksumError
Returns a new instance of ChecksumError
103 104 105 106 107 |
# File 'lib/aws/sqs/errors.rb', line 103 def initialize failures # failures can also be a single failure, always generate an array @failures = failures.is_a?(Array) ? failures : [failures] super("#{@failures.size} messages failed checksum verification") end |
Instance Attribute Details
#failures ⇒ Object (readonly)
Returns the value of attribute failures
109 110 111 |
# File 'lib/aws/sqs/errors.rb', line 109 def failures @failures end |