Exception: SyncwiseApi::Errors::EmptyResponseBody
- Inherits:
-
SyncwiseError
- Object
- StandardError
- SyncwiseError
- SyncwiseApi::Errors::EmptyResponseBody
- Defined in:
- lib/syncwise_api/errors.rb
Instance Attribute Summary collapse
-
#header ⇒ Object
readonly
Returns the value of attribute header.
-
#request ⇒ Object
readonly
Returns the value of attribute request.
-
#resp ⇒ Object
readonly
Returns the value of attribute resp.
Instance Method Summary collapse
-
#initialize(resp, request, header) ⇒ EmptyResponseBody
constructor
A new instance of EmptyResponseBody.
Constructor Details
#initialize(resp, request, header) ⇒ EmptyResponseBody
Returns a new instance of EmptyResponseBody.
59 60 61 62 63 64 |
# File 'lib/syncwise_api/errors.rb', line 59 def initialize(resp, request, header) @resp = resp @request = request @header = header super("Api call returned with empty body. Response: #{@resp}, request: #{@request}, header: #{@header}") end |
Instance Attribute Details
#header ⇒ Object (readonly)
Returns the value of attribute header.
66 67 68 |
# File 'lib/syncwise_api/errors.rb', line 66 def header @header end |
#request ⇒ Object (readonly)
Returns the value of attribute request.
66 67 68 |
# File 'lib/syncwise_api/errors.rb', line 66 def request @request end |
#resp ⇒ Object (readonly)
Returns the value of attribute resp.
66 67 68 |
# File 'lib/syncwise_api/errors.rb', line 66 def resp @resp end |