Module: Exceptify::RakeTaskExtensions

Included in:
Rake::Task
Defined in:
lib/exceptify/rake.rb

Instance Method Summary collapse

Instance Method Details

#execute(args = nil) ⇒ Object

A wrapper around the original #execute, that catches all errors and passes them on to Exceptify.



14
15
16
17
18
19
# File 'lib/exceptify/rake.rb', line 14

def execute(args = nil)
  super
rescue Exception => e # standard:disable Lint/RescueException
  Exceptify.notify_exception(e, data: data_for_exceptify(e)) unless e.is_a?(SystemExit)
  raise e
end