Exception: ChatSDK::RateLimitedError

Inherits:
PlatformError show all
Defined in:
lib/chat_sdk/errors.rb

Instance Attribute Summary collapse

Attributes inherited from PlatformError

#adapter_name, #body, #status

Instance Method Summary collapse

Constructor Details

#initialize(message, retry_after: nil, **kwargs) ⇒ RateLimitedError

Returns a new instance of RateLimitedError.



31
32
33
34
# File 'lib/chat_sdk/errors.rb', line 31

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

Instance Attribute Details

#retry_afterObject (readonly)

Returns the value of attribute retry_after.



30
31
32
# File 'lib/chat_sdk/errors.rb', line 30

def retry_after
  @retry_after
end