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

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

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



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

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

Instance Attribute Details

#errorException (readonly)

Returns The unexpected error.

Returns:

  • (Exception)

    The unexpected error.



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

def error
  @error
end