Module: ExceptionNotification::RakeTaskExtensions
- Included in:
- Rake::Task
- Defined in:
- lib/exception_notification/rake.rb
Instance Method Summary collapse
-
#execute(args = nil) ⇒ Object
A wrapper around the original
#execute, that catches all errors and passes them on to ExceptionNotifier.
Instance Method Details
#execute(args = nil) ⇒ Object
A wrapper around the original #execute, that catches all errors and passes them on to ExceptionNotifier.
11 12 13 14 15 16 |
# File 'lib/exception_notification/rake.rb', line 11 def execute(args = nil) super rescue Exception => e # standard:disable Lint/RescueException ExceptionNotifier.notify_exception(e, data: data_for_exception_notifier(e)) unless e.is_a?(SystemExit) raise e end |