Exception: Wasabi::Resolver::HTTPError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/wasabi/resolver.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, response = nil) ⇒ HTTPError

Returns a new instance of HTTPError.



13
14
15
16
# File 'lib/wasabi/resolver.rb', line 13

def initialize(message, response=nil)
  super(message)
  @response = response
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



17
18
19
# File 'lib/wasabi/resolver.rb', line 17

def response
  @response
end