Exception: Axn::Webhooks::RetryLater

Inherits:
Error
  • Object
show all
Defined in:
lib/axn/webhooks/errors.rb

Overview

Raised by a handler (via Axn::Webhooks.retry_later!) to ask the sender to redeliver later — mapped to 503 + Retry-After by the inbound endpoint. Distinct from a crash (a reported 500): a deliberate, un-paged "come back later".

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = "retry later", retry_after: nil) ⇒ RetryLater

Returns a new instance of RetryLater.



19
20
21
22
# File 'lib/axn/webhooks/errors.rb', line 19

def initialize(message = "retry later", retry_after: nil)
  @retry_after = retry_after
  super(message)
end

Instance Attribute Details

#retry_afterObject (readonly)

Returns the value of attribute retry_after.



17
18
19
# File 'lib/axn/webhooks/errors.rb', line 17

def retry_after
  @retry_after
end