Exception: Gitlab::GithubImport::RateLimitError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/gitlab/github_import/rate_limit_error.rb

Overview

Error that will be raised when we’re about to reach (or have reached) the GitHub API’s rate limit.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, reset_in = nil) ⇒ RateLimitError

Returns a new instance of RateLimitError.



10
11
12
13
# File 'lib/gitlab/github_import/rate_limit_error.rb', line 10

def initialize(message = nil, reset_in = nil)
  @reset_in = reset_in
  super(message)
end

Instance Attribute Details

#reset_inObject (readonly)

Returns the value of attribute reset_in.



8
9
10
# File 'lib/gitlab/github_import/rate_limit_error.rb', line 8

def reset_in
  @reset_in
end