AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Exception: Aws::Waiters::Errors::UnexpectedError

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

Constant Summary collapse

MSG =
"stopped waiting due to an unexpected error: %s"

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error) ⇒ UnexpectedError

Returns a new instance of UnexpectedError.



44
45
46
47
# File 'gems/aws-sdk-core/lib/aws-sdk-core/waiters/errors.rb', line 44

def initialize(error)
  @error = error
  super(MSG % [error.message])
end

Instance Attribute Details

#errorException (readonly)

Returns The unexpected error.

Returns:

  • (Exception)

    The unexpected error.



50
51
52
# File 'gems/aws-sdk-core/lib/aws-sdk-core/waiters/errors.rb', line 50

def error
  @error
end