Exception: Trigv::RateLimitError
- Defined in:
- lib/trigv/errors.rb
Instance Attribute Summary collapse
-
#retry_after_seconds ⇒ Object
readonly
Returns the value of attribute retry_after_seconds.
-
#retryable ⇒ Object
readonly
Returns the value of attribute retryable.
-
#status_code ⇒ Object
readonly
Returns the value of attribute status_code.
Instance Method Summary collapse
-
#initialize(message, retryable: true, retry_after_seconds: nil) ⇒ RateLimitError
constructor
A new instance of RateLimitError.
Constructor Details
#initialize(message, retryable: true, retry_after_seconds: nil) ⇒ RateLimitError
Returns a new instance of RateLimitError.
49 50 51 52 53 54 |
# File 'lib/trigv/errors.rb', line 49 def initialize(, retryable: true, retry_after_seconds: nil) super() @status_code = 429 @retryable = retryable @retry_after_seconds = retry_after_seconds end |
Instance Attribute Details
#retry_after_seconds ⇒ Object (readonly)
Returns the value of attribute retry_after_seconds.
47 48 49 |
# File 'lib/trigv/errors.rb', line 47 def retry_after_seconds @retry_after_seconds end |
#retryable ⇒ Object (readonly)
Returns the value of attribute retryable.
47 48 49 |
# File 'lib/trigv/errors.rb', line 47 def retryable @retryable end |
#status_code ⇒ Object (readonly)
Returns the value of attribute status_code.
47 48 49 |
# File 'lib/trigv/errors.rb', line 47 def status_code @status_code end |