Exception: MetronomeSDK::Errors::APIError
- Inherits:
-
Error
- Object
- StandardError
- Error
- MetronomeSDK::Errors::APIError
show all
- Defined in:
- lib/metronome_sdk/errors.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
#initialize(url:, status: nil, headers: 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.
58
59
60
61
62
63
64
65
66
|
# File 'lib/metronome_sdk/errors.rb', line 58
def initialize(url:, status: nil, headers: nil, body: nil, request: nil, response: nil, message: nil)
@url = url
@status = status
@headers =
@body = body
@request = request
@response = response
super(message)
end
|
Instance Attribute Details
#body ⇒ Object?
47
48
49
|
# File 'lib/metronome_sdk/errors.rb', line 47
def body
@body
end
|
44
45
46
|
# File 'lib/metronome_sdk/errors.rb', line 44
def
@headers
end
|
#status ⇒ Integer?
41
42
43
|
# File 'lib/metronome_sdk/errors.rb', line 41
def status
@status
end
|
#url ⇒ URI::Generic
38
39
40
|
# File 'lib/metronome_sdk/errors.rb', line 38
def url
@url
end
|