Exception: Amazon::WebServices::Util::UnknownResultException
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Amazon::WebServices::Util::UnknownResultException
- Defined in:
- lib/amazon/webservices/util/unknown_result_exception.rb
Overview
This exception is thrown when we don’t know if a service call succeeded or not
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#exception ⇒ Object
readonly
Returns the value of attribute exception.
-
#method ⇒ Object
readonly
Returns the value of attribute method.
Instance Method Summary collapse
-
#initialize(exception, method, args = {}) ⇒ UnknownResultException
constructor
A new instance of UnknownResultException.
- #to_s ⇒ Object
Constructor Details
#initialize(exception, method, args = {}) ⇒ UnknownResultException
Returns a new instance of UnknownResultException.
13 14 15 16 17 |
# File 'lib/amazon/webservices/util/unknown_result_exception.rb', line 13 def initialize( exception, method, args={} ) @method = method @args = args @exception = exception end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
11 12 13 |
# File 'lib/amazon/webservices/util/unknown_result_exception.rb', line 11 def args @args end |
#exception ⇒ Object (readonly)
Returns the value of attribute exception.
11 12 13 |
# File 'lib/amazon/webservices/util/unknown_result_exception.rb', line 11 def exception @exception end |
#method ⇒ Object (readonly)
Returns the value of attribute method.
11 12 13 |
# File 'lib/amazon/webservices/util/unknown_result_exception.rb', line 11 def method @method end |
Instance Method Details
#to_s ⇒ Object
19 20 21 |
# File 'lib/amazon/webservices/util/unknown_result_exception.rb', line 19 def to_s "UnknownResultException: got #{@exception} calling #{@method}" end |