Module: Pliny::ErrorReporters
- Extended by:
- ErrorReporters
- Included in:
- ErrorReporters
- Defined in:
- lib/pliny/error_reporters.rb,
lib/pliny/error_reporters/rollbar.rb
Defined Under Namespace
Classes: Rollbar
Instance Attribute Summary collapse
-
#error_reporters ⇒ Object
Returns the value of attribute error_reporters.
Instance Method Summary collapse
Instance Attribute Details
#error_reporters ⇒ Object
Returns the value of attribute error_reporters.
6 7 8 |
# File 'lib/pliny/error_reporters.rb', line 6 def error_reporters @error_reporters end |
Instance Method Details
#notify(exception, context: {}, rack_env: {}) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/pliny/error_reporters.rb', line 8 def notify(exception, context: {}, rack_env: {}) Pliny.log_exception(exception) error_reporters.each do |reporter| begin reporter.new.notify(exception, context: context, rack_env: rack_env) rescue Pliny.log_exception($!) end end end |