Exception: Inttegro::RateLimitError

Inherits:
APIError show all
Extended by:
T::Sig
Defined in:
lib/inttegro/errors.rb

Instance Attribute Summary collapse

Attributes inherited from APIError

#body, #cause, #code, #data, #detail, #fix_code, #request_id, #status, #type, #url

Attributes inherited from Error

#report

Instance Method Summary collapse

Constructor Details

#initialize(message, status:, code: nil, type: nil, url: nil, detail: nil, fix_code: nil, cause: nil, body: nil, data: nil, retry_after: nil, request_id: nil) ⇒ RateLimitError

Returns a new instance of RateLimitError.



116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
# File 'lib/inttegro/errors.rb', line 116

def initialize(
  message,
  status:,
  code: nil,
  type: nil,
  url: nil,
  detail: nil,
  fix_code: nil,
  cause: nil,
  body: nil,
  data: nil,
  retry_after: nil,
  request_id: nil
)
  super(
    message,
    status: status,
    code: code,
    type: type,
    url: url,
    detail: detail,
    fix_code: fix_code,
    cause: cause,
    body: body,
    data: data,
    request_id: request_id
  )
  @retry_after = retry_after
end

Instance Attribute Details

#retry_afterObject (readonly)

Returns the value of attribute retry_after.



98
99
100
# File 'lib/inttegro/errors.rb', line 98

def retry_after
  @retry_after
end