mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Mark Craig
02.05.2012 b1fb651eec266a4d97b990be4c7b3cded216b850
Remove unchecked exceptions
1 files modified
19 ■■■■■ changed files
opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/getinfo/Main.java 19 ●●●●● patch | view | raw | blame | history
opendj3/opendj-ldap-sdk-examples/src/main/java/org/forgerock/opendj/examples/getinfo/Main.java
@@ -28,7 +28,6 @@
import java.io.IOException;
import org.forgerock.i18n.LocalizedIllegalArgumentException;
import org.forgerock.opendj.ldap.Connection;
import org.forgerock.opendj.ldap.ErrorResultException;
import org.forgerock.opendj.ldap.LDAPConnectionFactory;
@@ -111,24 +110,6 @@
      System.exit(ResultCode.CLIENT_SIDE_USER_CANCELLED.intValue());
      return;
    }
    catch (LocalizedIllegalArgumentException e)
    {
      System.err.println(e.getMessageObject().toString());
      System.exit(ResultCode.CLIENT_SIDE_PARAM_ERROR.intValue());
      return;
    }
    catch (UnsupportedOperationException e)
    {
      System.err.println(e.getMessage());
      System.exit(ResultCode.CLIENT_SIDE_LOCAL_ERROR.intValue());
      return;
    }
    catch (IllegalStateException e)
    {
      System.err.println(e.getMessage());
      System.exit(ResultCode.CLIENT_SIDE_LOCAL_ERROR.intValue());
      return;
    }
    catch (IOException e)
    {
      System.err.println(e.getMessage());