From 1cdfd17588dc2b83cb12cd11a8e5d86d28577940 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Fri, 1 Apr 2016 22:46:16 +0200 Subject: Fixed exception handling in X509CertInfo. The methods in X509CertInfo have been modified to chain the original exception. https://fedorahosted.org/pki/ticket/1654 --- base/util/src/netscape/security/x509/X509CertInfo.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'base/util/src') 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); } } -- cgit