summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2017-09-17 17:45:28 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2017-09-17 17:45:28 +0700
commitde8e5c63b7886c07530d830755145d530e5475e6 (patch)
treed010f8072adc0264bc6229d3bbb95ad7ec5c5a26
parentAdd testcase for RAW PKCS#1 signatures missing DER NULL (diff)
downloadBouncyCastle.NET-ed25519-de8e5c63b7886c07530d830755145d530e5475e6.tar.xz
Improve exception messages
-rw-r--r--crypto/src/crypto/tls/CertificateStatus.cs2
-rw-r--r--crypto/src/crypto/tls/CertificateStatusRequest.cs2
-rw-r--r--crypto/src/crypto/tls/ServerName.cs2
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");
             }
         }
     }