Pattern: Duplicate rescue exception
Issue: -
This rule checks that there are no repeated exceptions used in rescue
expressions.
# 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