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
#code, #request_id, #source, #type, #url
Instance Method Summary collapse
-
#initialize(retries: nil, message: "You have exceeded the rate limit.", source: nil, request_id: nil) ⇒ RateLimitError
constructor
A new instance of RateLimitError.
Constructor Details
#initialize(retries: nil, message: "You have exceeded the rate limit.", source: nil, request_id: nil) ⇒ RateLimitError
70 71 72 73 74 75 76 77 78 79 |
# File 'lib/shipengine/exceptions.rb', line 70 def initialize(retries: nil, message: "You have exceeded the rate limit.", source: nil, request_id: nil) super( message: , code: ShipEngine::Errors::ErrorCode.get(:RATE_LIMIT_EXCEEDED), source: source, request_id: request_id, url: URI("https://www.shipengine.com/docs/rate-limits"), ) @retries = retries end |
Instance Attribute Details
#retries ⇒ Object (readonly)
Returns the value of attribute retries.
68 69 70 |
# File 'lib/shipengine/exceptions.rb', line 68 def retries @retries end |