diff options
author | Jeffrey Stedfast <fejj@gnome.org> | 2013-11-24 15:57:59 -0500 |
---|---|---|
committer | Jeffrey Stedfast <fejj@gnome.org> | 2013-11-24 15:57:59 -0500 |
commit | 7bdf4010a8bb64464af494827b486df82294969e (patch) | |
tree | e5a72501d6a5f3227742a82265150dfbe1186f90 | |
parent | Use 1/n-1 record splitting instead of 0/n (diff) | |
download | BouncyCastle.NET-ed25519-7bdf4010a8bb64464af494827b486df82294969e.tar.xz |
Need to throw the new exceptions rather than leaving them to fall into the void
-rw-r--r-- | crypto/src/pkix/PkixCertPathValidatorUtilities.cs | 10 |
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; |