Module: ScoutApm::AllExceptionsExceptOnesWeMustNotRescue
- Defined in:
- lib/scout_apm/exceptions.rb
Constant Summary collapse
- AVOID_RESCUING =
Borrowed from github.com/rspec/rspec-support/blob/v3.8.0/lib/rspec/support.rb#L132-L140 These exceptions are dangerous to rescue as rescuing them would interfere with things we should not interfere with.
[NoMemoryError, SignalException, Interrupt, SystemExit]
Class Method Summary collapse
Class Method Details
.===(exception) ⇒ Object
8 9 10 |
# File 'lib/scout_apm/exceptions.rb', line 8 def self.===(exception) AVOID_RESCUING.none? { |ar| ar === exception } end |