Class: NullExceptionNotifier

Inherits:
Object
  • Object
show all
Defined in:
app/models/null_exception_notifier.rb

Overview

The host app can supply a handler for logging errors in background jobs, like so

Renalware::Engine.exception_notifier = MyExceptionNotifier.new

where the supplied instance must respond to .notify(exception, **params). Where a handler is not supplied we default to using this null handler.

Instance Method Summary collapse

Instance Method Details

#notify(exception, **_params) ⇒ Object



8
9
10
# File 'app/models/null_exception_notifier.rb', line 8

def notify(exception, **_params)
  # noop
end