class RuboCop::Cop::Lint::ShadowedException
def contains_multiple_levels_of_exceptions?(group)
def contains_multiple_levels_of_exceptions?(group) # Always treat `Exception` as the highest level exception. return true if group.size > 1 && group.include?(Exception) group.combination(2).any? do |a, b| compare_exceptions(a, b) end end