aboutsummaryrefslogtreecommitdiff
path: root/src/share/classes/sun/security/x509/X509Key.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/share/classes/sun/security/x509/X509Key.java')
-rw-r--r--src/share/classes/sun/security/x509/X509Key.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/share/classes/sun/security/x509/X509Key.java b/src/share/classes/sun/security/x509/X509Key.java
index 04855b19b..3db634e5f 100644
--- a/src/share/classes/sun/security/x509/X509Key.java
+++ b/src/share/classes/sun/security/x509/X509Key.java
@@ -171,7 +171,7 @@ public class X509Key implements PublicKey {
in.data.getUnalignedBitString());
} catch (InvalidKeyException e) {
- throw new IOException("subject key, " + e.getMessage());
+ throw new IOException("subject key, " + e.getMessage(), e);
}
if (in.data.available() != 0)
@@ -224,7 +224,7 @@ public class X509Key implements PublicKey {
} catch (NoSuchAlgorithmException e) {
// Return generic X509Key with opaque key data (see below)
} catch (InvalidKeySpecException e) {
- throw new InvalidKeyException(e.getMessage());
+ throw new InvalidKeyException(e.getMessage(), e);
}
/*