Exception: SyncwiseApi::Errors::HttpError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error, request) ⇒ HttpError

Returns a new instance of HttpError.



49
50
51
52
53
# File 'lib/syncwise_api/errors.rb', line 49

def initialize(error, request)
  @error = error
  @request = request
  super("Http Error when trying to make request. Object: #{@error.inspect}, request: #{@request}")
end

Instance Attribute Details

#errorObject (readonly)

Returns the value of attribute error.



55
56
57
# File 'lib/syncwise_api/errors.rb', line 55

def error
  @error
end

#requestObject (readonly)

Returns the value of attribute request.



55
56
57
# File 'lib/syncwise_api/errors.rb', line 55

def request
  @request
end