summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2016-04-01 22:46:16 +0200
committerEndi S. Dewata <edewata@redhat.com>2016-04-12 16:27:09 +0200
commit1cdfd17588dc2b83cb12cd11a8e5d86d28577940 (patch)
tree0f2c8847d0c8d8060720360aa8c3e60fbe85cef4
parentca2332dfed7834c2fdcd2fe0c2201d58725388e9 (diff)
downloadpki-1cdfd17588dc2b83cb12cd11a8e5d86d28577940.tar.gz
pki-1cdfd17588dc2b83cb12cd11a8e5d86d28577940.tar.xz
pki-1cdfd17588dc2b83cb12cd11a8e5d86d28577940.zip
Fixed exception handling in X509CertInfo.
The methods in X509CertInfo have been modified to chain the original exception. https://fedorahosted.org/pki/ticket/1654
-rw-r--r--base/util/src/netscape/security/x509/X509CertInfo.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/base/util/src/netscape/security/x509/X509CertInfo.java b/base/util/src/netscape/security/x509/X509CertInfo.java
index 29757ec8a..e4768294e 100644
--- a/base/util/src/netscape/security/x509/X509CertInfo.java
+++ b/base/util/src/netscape/security/x509/X509CertInfo.java
@@ -156,7 +156,7 @@ public class X509CertInfo implements CertAttrSet, Serializable {
parse(in);
} catch (IOException e) {
- throw new CertificateParsingException(e.toString());
+ throw new CertificateParsingException(e);
}
}
@@ -172,7 +172,7 @@ public class X509CertInfo implements CertAttrSet, Serializable {
try {
parse(derVal);
} catch (IOException e) {
- throw new CertificateParsingException(e.toString());
+ throw new CertificateParsingException(e);
}
}
@@ -266,9 +266,9 @@ public class X509CertInfo implements CertAttrSet, Serializable {
System.arraycopy(rawCertInfo, 0, dup, 0, dup.length);
return dup;
} catch (IOException e) {
- throw new CertificateEncodingException(e.toString());
+ throw new CertificateEncodingException(e);
} catch (CertificateException e) {
- throw new CertificateEncodingException(e.toString());
+ throw new CertificateEncodingException(e);
}
}