Exception: Rudy::AWS::SDB::ConnectionError

Inherits:
Error
  • Object
show all
Defined in:
lib/rudy/aws/sdb/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Error

#message

Constructor Details

#initialize(response) ⇒ ConnectionError

Returns a new instance of ConnectionError.



35
36
37
38
39
40
41
# File 'lib/rudy/aws/sdb/error.rb', line 35

def initialize(response)
  super(
    "#{response.code} \
     #{response.message if response.respond_to?(:message)}"
  )
  @response = response
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



33
34
35
# File 'lib/rudy/aws/sdb/error.rb', line 33

def response
  @response
end