Exception: FinchAPI::APIError
- Inherits:
-
Error
- Object
- StandardError
- Error
- FinchAPI::APIError
show all
- Defined in:
- lib/finch-api/errors.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
#initialize(url:, status: nil, body: nil, request: nil, response: nil, message: nil) ⇒ APIError
This method is part of a private API.
You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of APIError.
31
32
33
34
35
36
37
38
|
# File 'lib/finch-api/errors.rb', line 31
def initialize(url:, status: nil, body: nil, request: nil, response: nil, message: nil)
@url = url
@status = status
@body = body
@request = request
@response = response
super(message)
end
|
Instance Attribute Details
#body ⇒ Object?
21
22
23
|
# File 'lib/finch-api/errors.rb', line 21
def body
@body
end
|
#status ⇒ Integer?
18
19
20
|
# File 'lib/finch-api/errors.rb', line 18
def status
@status
end
|
#url ⇒ URI::Generic
15
16
17
|
# File 'lib/finch-api/errors.rb', line 15
def url
@url
end
|