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.



43
44
45
46
47
48
49
# File 'lib/aws_sdb/error.rb', line 43

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.



41
42
43
# File 'lib/aws_sdb/error.rb', line 41

def response
  @response
end