Exception: SyncwiseApi::Errors::EmptyResponseBody

Inherits:
SyncwiseError show all
Defined in:
lib/syncwise_api/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#headerObject (readonly)

Returns the value of attribute header.



66
67
68
# File 'lib/syncwise_api/errors.rb', line 66

def header
  @header
end

#requestObject (readonly)

Returns the value of attribute request.



66
67
68
# File 'lib/syncwise_api/errors.rb', line 66

def request
  @request
end

#respObject (readonly)

Returns the value of attribute resp.



66
67
68
# File 'lib/syncwise_api/errors.rb', line 66

def resp
  @resp
end