iachat/lib/custom_exceptions/webhook.rb
Gabriel Jablonski 3c2d535de2
feat(webhook): retry job on 404 (#179)
* feat(webhook): retry job on 404

* feat(webhook): enhance retry logic for 404 errors and update message status

* feat(webhook): update supported message events to use dynamic error handling

* chore: refactor logic

* feat(webhook): simplify RetriableError initialization and improve error handling for 404 responses
2026-01-01 20:42:16 -03:00

12 lines
251 B
Ruby

module CustomExceptions::Webhook # rubocop:disable Style/ClassAndModuleChildren
class RetriableError < CustomExceptions::Base
def initialize(message)
super(message: message)
end
def message
@data[:message]
end
end
end