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

Exception: Aws::Waiters::Errors::NoSuchWaiterError

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

Overview

Raised when attempting to get a waiter by name and the waiter has not been defined.

Constant Summary

MSG =
"no such waiter %s; valid waiter names are: %s"

Instance Method Summary collapse

Constructor Details

#initialize(waiter_name, waiter_names) ⇒ NoSuchWaiterError

Returns a new instance of NoSuchWaiterError



58
59
60
61
# File 'aws-sdk-core/lib/aws-sdk-core/waiters/errors.rb', line 58

def initialize(waiter_name, waiter_names)
  waiter_names = waiter_names.map(&:inspect).join(', ')
  super(MSG % [waiter_name.inspect, waiter_names])
end