Exception: Docit::Ai::RateLimitError

Inherits:
Error
  • Object
show all
Defined in:
lib/docit/ai/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, retry_after: nil) ⇒ RateLimitError

Returns a new instance of RateLimitError.



10
11
12
13
# File 'lib/docit/ai/client.rb', line 10

def initialize(message, retry_after: nil)
  @retry_after = retry_after
  super(message)
end

Instance Attribute Details

#retry_afterObject (readonly)

Returns the value of attribute retry_after.



8
9
10
# File 'lib/docit/ai/client.rb', line 8

def retry_after
  @retry_after
end