Removed redundant import statements.
Combined two Exceptions that were dealt with equally.