Exception: AwsSdb::ConnectionError

Inherits:
Error
  • Object
show all
Defined in:
lib/aws_sdb/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ ConnectionError

Returns a new instance of ConnectionError.



33
34
35
36
37
38
39
# File 'lib/aws_sdb/error.rb', line 33

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.



31
32
33
# File 'lib/aws_sdb/error.rb', line 31

def response
  @response
end