class RuboCop::Cop::Lint::DuplicateRescueException

Checks that there are no repeated exceptions used in ‘rescue’ expressions.

@example

# bad
begin
  something
rescue FirstException
  handle_exception
rescue FirstException
  handle_other_exception
end

# good
begin
  something
rescue FirstException
  handle_exception
rescue SecondException
  handle_other_exception
end