From 7bdf4010a8bb64464af494827b486df82294969e Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Sun, 24 Nov 2013 15:57:59 -0500 Subject: Need to throw the new exceptions rather than leaving them to fall into the void --- crypto/src/pkix/PkixCertPathValidatorUtilities.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'crypto/src/pkix') diff --git a/crypto/src/pkix/PkixCertPathValidatorUtilities.cs b/crypto/src/pkix/PkixCertPathValidatorUtilities.cs index 305b2de35..acea77856 100644 --- a/crypto/src/pkix/PkixCertPathValidatorUtilities.cs +++ b/crypto/src/pkix/PkixCertPathValidatorUtilities.cs @@ -528,7 +528,7 @@ namespace Org.BouncyCastle.Pkix } catch (Exception e) { - new Exception( + throw new Exception( "Reason code CRL entry extension could not be decoded.", e); } @@ -683,8 +683,8 @@ namespace Org.BouncyCastle.Pkix /// the certificates /// a List containing only X509Store objects. These /// are used to search for certificates. - /// a Collection of all found or - /// org.bouncycastle.x509.X509AttributeCertificate objects. + /// a Collection of all found or + /// objects. /// May be empty but never null. /// internal static ICollection FindCertificates( @@ -864,7 +864,7 @@ namespace Org.BouncyCastle.Pkix } catch (Exception e) { - new Exception("Could not get issuer information from distribution point.", e); + throw new Exception("Could not get issuer information from distribution point.", e); } if (cert is X509Certificate) @@ -924,7 +924,7 @@ namespace Org.BouncyCastle.Pkix } catch (IOException e) { - new Exception("Cannot extract issuer from CRL.", e); + throw new Exception("Cannot extract issuer from CRL.", e); } BigInteger completeCRLNumber = null; -- cgit 1.4.1