Exception: ShipEngine::Exceptions::RateLimitError
- Inherits:
-
SystemError
- Object
- StandardError
- ShipEngineError
- SystemError
- ShipEngine::Exceptions::RateLimitError
- Defined in:
- lib/shipengine/exceptions.rb
Instance Attribute Summary collapse
-
#retries ⇒ Object
readonly
Returns the value of attribute retries.
Attributes inherited from ShipEngineError
Instance Method Summary collapse
-
#initialize(retries: nil, message: "You have exceeded the rate limit.", source: nil) ⇒ RateLimitError
constructor
A new instance of RateLimitError.
Constructor Details
#initialize(retries: nil, message: "You have exceeded the rate limit.", source: nil) ⇒ RateLimitError
Returns a new instance of RateLimitError.
68 69 70 71 72 73 74 75 76 |
# File 'lib/shipengine/exceptions.rb', line 68 def initialize(retries: nil, message: "You have exceeded the rate limit.", source: nil) super( message: , code: ShipEngine::Errors::ErrorCode.get(:RATE_LIMIT_EXCEEDED), source: source, url: URI("https://www.shipengine.com/docs/rate-limits"), ) @retries = retries end |
Instance Attribute Details
#retries ⇒ Object (readonly)
Returns the value of attribute retries.
66 67 68 |
# File 'lib/shipengine/exceptions.rb', line 66 def retries @retries end |