diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2017-09-17 17:45:28 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2017-09-17 17:45:28 +0700 |
commit | de8e5c63b7886c07530d830755145d530e5475e6 (patch) | |
tree | d010f8072adc0264bc6229d3bbb95ad7ec5c5a26 | |
parent | Add testcase for RAW PKCS#1 signatures missing DER NULL (diff) | |
download | BouncyCastle.NET-ed25519-de8e5c63b7886c07530d830755145d530e5475e6.tar.xz |
Improve exception messages
-rw-r--r-- | crypto/src/crypto/tls/CertificateStatus.cs | 2 | ||||
-rw-r--r-- | crypto/src/crypto/tls/CertificateStatusRequest.cs | 2 | ||||
-rw-r--r-- | crypto/src/crypto/tls/ServerName.cs | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/crypto/src/crypto/tls/CertificateStatus.cs b/crypto/src/crypto/tls/CertificateStatus.cs index 0f95475b9..bc4128722 100644 --- a/crypto/src/crypto/tls/CertificateStatus.cs +++ b/crypto/src/crypto/tls/CertificateStatus.cs @@ -95,7 +95,7 @@ namespace Org.BouncyCastle.Crypto.Tls case CertificateStatusType.ocsp: return response is OcspResponse; default: - throw new ArgumentException("unsupported value", "statusType"); + throw new ArgumentException("unsupported CertificateStatusType", "statusType"); } } } diff --git a/crypto/src/crypto/tls/CertificateStatusRequest.cs b/crypto/src/crypto/tls/CertificateStatusRequest.cs index 9587d7df8..24ce37655 100644 --- a/crypto/src/crypto/tls/CertificateStatusRequest.cs +++ b/crypto/src/crypto/tls/CertificateStatusRequest.cs @@ -88,7 +88,7 @@ namespace Org.BouncyCastle.Crypto.Tls case CertificateStatusType.ocsp: return request is OcspStatusRequest; default: - throw new ArgumentException("unsupported value", "statusType"); + throw new ArgumentException("unsupported CertificateStatusType", "statusType"); } } } diff --git a/crypto/src/crypto/tls/ServerName.cs b/crypto/src/crypto/tls/ServerName.cs index 508c2ddbc..45d18b79b 100644 --- a/crypto/src/crypto/tls/ServerName.cs +++ b/crypto/src/crypto/tls/ServerName.cs @@ -98,7 +98,7 @@ namespace Org.BouncyCastle.Crypto.Tls case Tls.NameType.host_name: return name is string; default: - throw new ArgumentException("unsupported value", "name"); + throw new ArgumentException("unsupported NameType", "nameType"); } } } |