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.


11
12
13
14
# File 'lib/wasabi/resolver.rb', line 11

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

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response


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

def response
  @response
end