Exception: GbPrimepay::CheckStatus::RateLimitError
- Inherits:
-
StandardError
- Object
- StandardError
- GbPrimepay::CheckStatus::RateLimitError
- Defined in:
- app/my_lib/gb_primepay/check_status.rb
Overview
Custom exception for rate limiting to enable specific retry handling
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(message, response = nil) ⇒ RateLimitError
constructor
A new instance of RateLimitError.
Constructor Details
#initialize(message, response = nil) ⇒ RateLimitError
Returns a new instance of RateLimitError.
20 21 22 23 |
# File 'app/my_lib/gb_primepay/check_status.rb', line 20 def initialize(, response = nil) super() @response = response end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
18 19 20 |
# File 'app/my_lib/gb_primepay/check_status.rb', line 18 def response @response end |