Class: TrackerHub::Request::Utils::Exception
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- TrackerHub::Request::Utils::Exception
- Defined in:
- lib/tracker_hub/request/utils/exception.rb
Overview
SimpleDelegator wrapping class for exceptions
Instance Method Summary collapse
-
#report(notification, framework = Rails) ⇒ Boolean
Send a report of the exception with a given notification.
Instance Method Details
#report(notification, framework = Rails) ⇒ Boolean
Send a report of the exception with a given notification
21 22 23 24 25 |
# File 'lib/tracker_hub/request/utils/exception.rb', line 21 def report(notification, framework = Rails) formatted_backtrace = backtrace.join("\n") msg = "[#{framework.env}]\n#{}\n#{formatted_backtrace}" notification.notify(msg) end |