Class: Crashbreak::TinyExceptionNotifier

Inherits:
ExceptionNotifier show all
Defined in:
lib/crashbreak/tiny_exception_notifier.rb

Instance Method Summary collapse

Instance Method Details

#notify(exception = RequestStore.store[:exception]) ⇒ Object



3
4
5
6
# File 'lib/crashbreak/tiny_exception_notifier.rb', line 3

def notify(exception = RequestStore.store[:exception])
  RequestStore.store[:exception] = exception
  exceptions_repository.create serialize_exception
end