module ApiHammer::ShowTextExceptions::AllExceptionsExceptOnesWeMustNotRescue

this module blatantly stolen from github.com/rspec/rspec-support/blob/v3.5.0/lib/rspec/support.rb#L121-L130 under MIT license github.com/rspec/rspec-support/blob/v3.5.0/LICENSE.md

Constants

AVOID_RESCUING

These exceptions are dangerous to rescue as rescuing them would interfere with things we should not interfere with.

Public Class Methods

===(exception) click to toggle source
# File lib/api_hammer/show_text_exceptions.rb, line 20
def self.===(exception)
  AVOID_RESCUING.none? { |ar| ar === exception }
end