Exception: Schwab::RateLimitError
- Defined in:
- lib/schwab/error.rb
Overview
Raised when API returns 429 Too Many Requests
Instance Attribute Summary collapse
-
#retry_after ⇒ Object
readonly
Returns the value of attribute retry_after.
Attributes inherited from ApiError
#response_body, #response_headers, #status
Instance Method Summary collapse
-
#initialize(message = nil, retry_after: nil, **options) ⇒ RateLimitError
constructor
A new instance of RateLimitError.
Constructor Details
#initialize(message = nil, retry_after: nil, **options) ⇒ RateLimitError
Returns a new instance of RateLimitError.
35 36 37 38 |
# File 'lib/schwab/error.rb', line 35 def initialize( = nil, retry_after: nil, **) super(, **) @retry_after = retry_after end |
Instance Attribute Details
#retry_after ⇒ Object (readonly)
Returns the value of attribute retry_after.
33 34 35 |
# File 'lib/schwab/error.rb', line 33 def retry_after @retry_after end |