Module: Notificate::ExceptionCatcher
- Defined in:
- lib/notificate/exception_catcher.rb
Class Method Summary collapse
Class Method Details
.notify(exception, data) ⇒ Object
2 3 4 5 6 |
# File 'lib/notificate/exception_catcher.rb', line 2 def self.notify(exception, data) payload = { body: { payload: { exception: exception.to_s, data: data } }.to_json } ::Notificate::Notice.new(payload, :exception) end |