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
show all
Defined in:
lib/aws/sqs/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#failuresObject (readonly)

Returns the value of attribute failures



109
110
111
# File 'lib/aws/sqs/errors.rb', line 109

def failures
  @failures
end