* 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
12 lines
251 B
Ruby
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
|