Module: ExceptionHunter::Tracking
- Included in:
- ExceptionHunter
- Defined in:
- lib/exception_hunter/tracking.rb
Overview
Mixin used to track manual exceptions.
Instance Method Summary collapse
-
#track(exception, custom_data: {}, user: nil) ⇒ void
Used to manually track errors in cases where raising might not be adequate and but some insight is desired.
Instance Method Details
#track(exception, custom_data: {}, user: nil) ⇒ void
This method returns an undefined value.
Used to manually track errors in cases where raising might not be adequate and but some insight is desired.
21 22 23 24 25 26 27 28 29 |
# File 'lib/exception_hunter/tracking.rb', line 21 def track(exception, custom_data: {}, user: nil) if open_transactions? create_error_within_new_thread(exception, custom_data, user) else create_error(exception, custom_data, user) end nil end |