Exception: HalClient::HttpError
- Inherits:
-
StandardError
- Object
- StandardError
- HalClient::HttpError
- Defined in:
- lib/hal_client/errors.rb
Overview
Server responded with a non-200 status code
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(message, response) ⇒ HttpError
constructor
A new instance of HttpError.
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(, response) @response = response super() end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
15 16 17 |
# File 'lib/hal_client/errors.rb', line 15 def response @response end |