Exception: HalClient::HttpError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/hal_client/errors.rb

Overview

Server responded with a non-200 status code

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, response) ⇒ HttpError

Returns a new instance of HttpError.



10
11
12
13
# File 'lib/hal_client/errors.rb', line 10

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

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



15
16
17
# File 'lib/hal_client/errors.rb', line 15

def response
  @response
end