Exception: Amazon::WebServices::Util::UnknownResultException

Inherits:
RuntimeError
  • Object
show all
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

Instance Method Summary collapse

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

#argsObject (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

#exceptionObject (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

#methodObject (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_sObject



19
20
21
# File 'lib/amazon/webservices/util/unknown_result_exception.rb', line 19

def to_s
  "UnknownResultException: got #{@exception} calling #{@method}"
end