module Notificate::ExceptionCatcher

Public Class Methods

notify(exception, data) click to toggle source
# 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