Exception: GbPrimepay::CheckStatus::RateLimitError

Inherits:
StandardError
  • Object
show all
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

Instance Method Summary collapse

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(message, response = nil)
  super(message)
  @response = response
end

Instance Attribute Details

#responseObject (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