Exception: Hugs::Errors::HTTPStatusError

Inherits:
Error
  • Object
show all
Defined in:
lib/hugs/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, response) ⇒ HTTPStatusError



8
9
10
11
# File 'lib/hugs/errors.rb', line 8

def initialize msg, response
  @response = response
  super msg
end

Instance Attribute Details

#responseObject

Returns the value of attribute response.



6
7
8
# File 'lib/hugs/errors.rb', line 6

def response
  @response
end