harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikhail Loenko" <mloe...@gmail.com>
Subject [tools] HARMONY-598 (Keytool - added keystore loading, keytool-specific exception type, misc.)
Date Tue, 13 Jun 2006 16:20:31 GMT
Hi Anton

Sorry I'm not a guru in keytools but why catch exceptions and resend them?

+        try {
+            // try to load the keystore
+            keyStore.load(fis, storePass);
+        } catch (NoSuchAlgorithmException e) {
+            throw new NoSuchAlgorithmException(
+                    "Failed to find the algorithm to check the
keystore integrity",
+                    e);
+        } catch (CertificateException e) {
+            throw new CertificateException(
+                    "Failed to load a certificate from the keystore. ", e);
+        } catch (IOException e) {
+            throw (IOException) new IOException("Failed to load the
keystore. ")
+                    .initCause(e);
+        }
+        return keyStore;
+    }

Thanks,
Mikhail

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Mime
View raw message