Exception: SyncwiseApi::Errors::HttpError
- Inherits:
-
SyncwiseError
- Object
- StandardError
- SyncwiseError
- SyncwiseApi::Errors::HttpError
- Defined in:
- lib/syncwise_api/errors.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#request ⇒ Object
readonly
Returns the value of attribute request.
Instance Method Summary collapse
-
#initialize(error, request) ⇒ HttpError
constructor
A new instance of HttpError.
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
#error ⇒ Object (readonly)
Returns the value of attribute error.
55 56 57 |
# File 'lib/syncwise_api/errors.rb', line 55 def error @error end |
#request ⇒ Object (readonly)
Returns the value of attribute request.
55 56 57 |
# File 'lib/syncwise_api/errors.rb', line 55 def request @request end |