Method: Lorkhan::Errors::HTTPError#initialize

Defined in:
lib/lorkhan/errors/http_error.rb

#initialize(response) ⇒ HTTPError

Returns a new instance of HTTPError.



6
7
8
9
10
# File 'lib/lorkhan/errors/http_error.rb', line 6

def initialize(response)
  super("http_error/#{response.status}")
  @response = response
  @status = response.status
end