chore(mailer): MailDeliveryError with original exception backtrace

This commit is contained in:
Colin Darie 2023-02-02 15:59:18 +01:00
parent 380a4232c6
commit 9641a40ea7

View file

@ -3,4 +3,10 @@
# so it would be shallowed otherwise.
#
# TODO: add a test which verify that the error will permit the job to retry
class MailDeliveryError < Exception; end # rubocop:disable Lint/InheritException
class MailDeliveryError < Exception # rubocop:disable Lint/InheritException
def initialize(original_exception)
super(original_exception.message)
set_backtrace(original_exception.backtrace)
end
end