Exception: Axn::Webhooks::RetryLater
- 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
-
#retry_after ⇒ Object
readonly
Returns the value of attribute retry_after.
Instance Method Summary collapse
-
#initialize(message = "retry later", retry_after: nil) ⇒ RetryLater
constructor
A new instance of RetryLater.
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( = "retry later", retry_after: nil) @retry_after = retry_after super() end |
Instance Attribute Details
#retry_after ⇒ Object (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 |