Module: ApiHammer::ShowTextExceptions::AllExceptionsExceptOnesWeMustNotRescue

Defined in:
lib/api_hammer/show_text_exceptions.rb

Overview

Constant Summary collapse

AVOID_RESCUING =

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



20
21
22
# File 'lib/api_hammer/show_text_exceptions.rb', line 20

def self.===(exception)
  AVOID_RESCUING.none? { |ar| ar === exception }
end