You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Exception: Aws::Waiters::Errors::TooManyAttemptsError

Inherits:
WaiterFailed
  • Object
show all
Defined in:
gems/aws-sdk-core/lib/aws-sdk-core/waiters/errors.rb

Constant Summary

MSG =
"stopped waiting after %d attempts without success"

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attempts) ⇒ TooManyAttemptsError

Returns a new instance of TooManyAttemptsError



28
29
30
31
# File 'gems/aws-sdk-core/lib/aws-sdk-core/waiters/errors.rb', line 28

def initialize(attempts)
  @attempts = attempts
  super(MSG % [attempts])
end

Instance Attribute Details

#attemptsInteger (readonly)

Returns:

  • (Integer)


34
35
36
# File 'gems/aws-sdk-core/lib/aws-sdk-core/waiters/errors.rb', line 34

def attempts
  @attempts
end