Exception: SimpleAWS::UnsuccessfulResponse

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/simple_aws/core/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code, error_type, error_message) ⇒ UnsuccessfulResponse



10
11
12
13
14
15
# File 'lib/simple_aws/core/response.rb', line 10

def initialize(code, error_type, error_message)
  super "#{error_type} (#{code}): #{error_message}"
  @code = code
  @error_type = error_type
  @error_message = error_message
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code



6
7
8
# File 'lib/simple_aws/core/response.rb', line 6

def code
  @code
end

#error_messageObject (readonly)

Returns the value of attribute error_message



8
9
10
# File 'lib/simple_aws/core/response.rb', line 8

def error_message
  @error_message
end

#error_typeObject (readonly)

Returns the value of attribute error_type



7
8
9
# File 'lib/simple_aws/core/response.rb', line 7

def error_type
  @error_type
end