Exception: GdsApi::HTTPErrorResponse
- Defined in:
- lib/gds_api/exceptions.rb
Overview
Superclass for all 4XX and 5XX errors
Direct Known Subclasses
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(code, message = nil, error_details = nil, request_body = nil) ⇒ HTTPErrorResponse
constructor
A new instance of HTTPErrorResponse.
Methods inherited from BaseError
Constructor Details
#initialize(code, message = nil, error_details = nil, request_body = nil) ⇒ HTTPErrorResponse
Returns a new instance of HTTPErrorResponse.
25 26 27 28 29 30 |
# File 'lib/gds_api/exceptions.rb', line 25 def initialize(code, = nil, error_details = nil, request_body = nil) super() @code = code @error_details = error_details @request_body = request_body end |
Instance Attribute Details
#code ⇒ Object
23 24 25 |
# File 'lib/gds_api/exceptions.rb', line 23 def code @code end |
#error_details ⇒ Object
23 24 25 |
# File 'lib/gds_api/exceptions.rb', line 23 def error_details @error_details end |