Exception: GdsApi::HTTPErrorResponse
- Defined in:
- lib/gds_api/exceptions.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#error_details ⇒ Object
Returns the value of attribute error_details.
Instance Method Summary collapse
-
#initialize(code, message = nil, error_details = nil, request_body = nil) ⇒ HTTPErrorResponse
constructor
A new instance of HTTPErrorResponse.
Constructor Details
#initialize(code, message = nil, error_details = nil, request_body = nil) ⇒ HTTPErrorResponse
Returns a new instance of HTTPErrorResponse.
17 18 19 20 21 22 |
# File 'lib/gds_api/exceptions.rb', line 17 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
Returns the value of attribute code.
15 16 17 |
# File 'lib/gds_api/exceptions.rb', line 15 def code @code end |
#error_details ⇒ Object
Returns the value of attribute error_details.
15 16 17 |
# File 'lib/gds_api/exceptions.rb', line 15 def error_details @error_details end |