chore(mailer): MailDeliveryError with original exception backtrace
This commit is contained in:
parent
380a4232c6
commit
9641a40ea7
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue