Need to throw the new exceptions rather than leaving them to fall into the void
1 files changed, 5 insertions, 5 deletions
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</param>
/// <param name="certStores">a List containing only X509Store objects. These
/// are used to search for certificates.</param>
- /// <returns>a Collection of all found <see cref="X509Certificate "/> or
- /// org.bouncycastle.x509.X509AttributeCertificate objects.
+ /// <returns>a Collection of all found <see cref="X509Certificate"/> or
+ /// <see cref="Org.BouncyCastle.X509.IX509AttributeCertificate"/> objects.
/// May be empty but never <code>null</code>.</returns>
/// <exception cref="Exception"></exception>
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;
|