Exception: CompletionKit::RateLimitError
- Defined in:
- lib/completion_kit/errors.rb
Instance Attribute Summary collapse
-
#provider ⇒ Object
readonly
Returns the value of attribute provider.
-
#retry_after ⇒ Object
readonly
Returns the value of attribute retry_after.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(message = nil, provider: nil, status: nil, retry_after: nil) ⇒ RateLimitError
constructor
A new instance of RateLimitError.
Constructor Details
#initialize(message = nil, provider: nil, status: nil, retry_after: nil) ⇒ RateLimitError
Returns a new instance of RateLimitError.
9 10 11 12 13 14 |
# File 'lib/completion_kit/errors.rb', line 9 def initialize( = nil, provider: nil, status: nil, retry_after: nil) super() @provider = provider @status = status @retry_after = retry_after end |
Instance Attribute Details
#provider ⇒ Object (readonly)
Returns the value of attribute provider.
7 8 9 |
# File 'lib/completion_kit/errors.rb', line 7 def provider @provider end |
#retry_after ⇒ Object (readonly)
Returns the value of attribute retry_after.
7 8 9 |
# File 'lib/completion_kit/errors.rb', line 7 def retry_after @retry_after end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
7 8 9 |
# File 'lib/completion_kit/errors.rb', line 7 def status @status end |