Exception: DatabricksSql::RateLimitError

Inherits:
HTTPError show all
Defined in:
lib/databricks_sql/errors.rb

Instance Attribute Summary collapse

Attributes inherited from HTTPError

#response_body, #status_code

Instance Method Summary collapse

Constructor Details

#initialize(message, status_code:, response_body: nil, retry_after_seconds: nil) ⇒ RateLimitError

Returns a new instance of RateLimitError.



36
37
38
39
# File 'lib/databricks_sql/errors.rb', line 36

def initialize(message, status_code:, response_body: nil, retry_after_seconds: nil)
  @retry_after_seconds = retry_after_seconds
  super(message, status_code: status_code, response_body: response_body)
end

Instance Attribute Details

#retry_after_secondsObject (readonly)

Returns the value of attribute retry_after_seconds.



34
35
36
# File 'lib/databricks_sql/errors.rb', line 34

def retry_after_seconds
  @retry_after_seconds
end