diff options
author | Kenneth Pouncey <kjpou@pt.lu> | 2019-11-22 10:40:30 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-22 10:40:30 +0300 |
commit | 202cb6a6483019185db7e1f75929d7db0d319173 (patch) | |
tree | f82391a850aa009c3c00b6788a94f5723324f123 /mcs/class/System.Net.Http | |
parent | dadc3d3117535ec44b887b8390181beda7b75b31 (diff) |
Add more descriptive message to the `PlatformNotSupportedException` (#17864)
Diffstat (limited to 'mcs/class/System.Net.Http')
-rw-r--r-- | mcs/class/System.Net.Http/System.Net.Http/HttpClientHandler.wasm.cs | 76 |
1 files changed, 38 insertions, 38 deletions
diff --git a/mcs/class/System.Net.Http/System.Net.Http/HttpClientHandler.wasm.cs b/mcs/class/System.Net.Http/System.Net.Http/HttpClientHandler.wasm.cs index b32de23b948..4091de7d2a6 100644 --- a/mcs/class/System.Net.Http/System.Net.Http/HttpClientHandler.wasm.cs +++ b/mcs/class/System.Net.Http/System.Net.Http/HttpClientHandler.wasm.cs @@ -38,98 +38,98 @@ namespace System.Net.Http public virtual bool SupportsRedirectConfiguration => false; public bool UseCookies { - get => throw new PlatformNotSupportedException (); - set => throw new PlatformNotSupportedException (); + get => throw new PlatformNotSupportedException ("Property UseCookies is not supported."); + set => throw new PlatformNotSupportedException ("Property UseCookies is not supported."); } public CookieContainer CookieContainer { - get => throw new PlatformNotSupportedException (); - set => throw new PlatformNotSupportedException (); + get => throw new PlatformNotSupportedException ("Property CookieContainer is not supported."); + set => throw new PlatformNotSupportedException ("Property CookieContainer is not supported."); } public ClientCertificateOption ClientCertificateOptions { - get => throw new PlatformNotSupportedException (); - set => throw new PlatformNotSupportedException (); + get => throw new PlatformNotSupportedException ("Property ClientCertificateOptions is not supported."); + set => throw new PlatformNotSupportedException ("Property ClientCertificateOptions is not supported."); } public X509CertificateCollection ClientCertificates { - get => throw new PlatformNotSupportedException (); - set => throw new PlatformNotSupportedException (); + get => throw new PlatformNotSupportedException ("Property ClientCertificates is not supported."); + set => throw new PlatformNotSupportedException ("Property ClientCertificates is not supported."); } public Func<HttpRequestMessage, X509Certificate2, X509Chain, SslPolicyErrors, bool> ServerCertificateCustomValidationCallback { - get => throw new PlatformNotSupportedException (); - set => throw new PlatformNotSupportedException (); + get => throw new PlatformNotSupportedException ("Property ServerCertificateCustomValidationCallback is not supported."); + set => throw new PlatformNotSupportedException ("Property ServerCertificateCustomValidationCallback is not supported."); } public bool CheckCertificateRevocationList { - get => throw new PlatformNotSupportedException (); - set => throw new PlatformNotSupportedException (); + get => throw new PlatformNotSupportedException ("Property CheckCertificateRevocationList is not supported."); + set => throw new PlatformNotSupportedException ("Property CheckCertificateRevocationList is not supported."); } public SslProtocols SslProtocols { - get => throw new PlatformNotSupportedException (); - set => throw new PlatformNotSupportedException (); + get => throw new PlatformNotSupportedException ("Property SslProtocols is not supported."); + set => throw new PlatformNotSupportedException ("Property SslProtocols is not supported."); } public DecompressionMethods AutomaticDecompression { - get => throw new PlatformNotSupportedException (); - set => throw new PlatformNotSupportedException (); + get => throw new PlatformNotSupportedException ("Property AutomaticDecompression is not supported."); + set => throw new PlatformNotSupportedException ("Property AutomaticDecompression is not supported."); } public bool UseProxy { - get => throw new PlatformNotSupportedException (); - set => throw new PlatformNotSupportedException (); + get => throw new PlatformNotSupportedException ("Property AutomaticDecompression is not supported."); + set => throw new PlatformNotSupportedException ("Property AutomaticDecompression is not supported."); } public IWebProxy Proxy { - get => throw new PlatformNotSupportedException (); - set => throw new PlatformNotSupportedException (); + get => throw new PlatformNotSupportedException ("Property Proxy is not supported."); + set => throw new PlatformNotSupportedException ("Property Proxy is not supported."); } public ICredentials DefaultProxyCredentials { - get => throw new PlatformNotSupportedException (); - set => throw new PlatformNotSupportedException (); + get => throw new PlatformNotSupportedException ("Property DefaultProxyCredentials is not supported."); + set => throw new PlatformNotSupportedException ("Property DefaultProxyCredentials is not supported."); } public bool PreAuthenticate { - get => throw new PlatformNotSupportedException (); - set => throw new PlatformNotSupportedException (); + get => throw new PlatformNotSupportedException ("Property PreAuthenticate is not supported."); + set => throw new PlatformNotSupportedException ("Property PreAuthenticate is not supported."); } public bool UseDefaultCredentials { - get => throw new PlatformNotSupportedException (); - set => throw new PlatformNotSupportedException (); + get => throw new PlatformNotSupportedException ("Property UseDefaultCredentials is not supported."); + set => throw new PlatformNotSupportedException ("Property UseDefaultCredentials is not supported."); } public ICredentials Credentials { - get => throw new PlatformNotSupportedException (); - set => throw new PlatformNotSupportedException (); + get => throw new PlatformNotSupportedException ("Property Credentials is not supported."); + set => throw new PlatformNotSupportedException ("Property Credentials is not supported."); } public bool AllowAutoRedirect { - get => throw new PlatformNotSupportedException (); - set => throw new PlatformNotSupportedException (); + get => throw new PlatformNotSupportedException ("Property AllowAutoRedirect is not supported."); + set => throw new PlatformNotSupportedException ("Property AllowAutoRedirect is not supported."); } public int MaxAutomaticRedirections { - get => throw new PlatformNotSupportedException (); - set => throw new PlatformNotSupportedException (); + get => throw new PlatformNotSupportedException ("Property MaxAutomaticRedirections is not supported."); + set => throw new PlatformNotSupportedException ("Property MaxAutomaticRedirections is not supported."); } public int MaxConnectionsPerServer { - get => throw new PlatformNotSupportedException (); - set => throw new PlatformNotSupportedException (); + get => throw new PlatformNotSupportedException ("Property MaxConnectionsPerServer is not supported."); + set => throw new PlatformNotSupportedException ("Property MaxConnectionsPerServer is not supported."); } public int MaxResponseHeadersLength { - get => throw new PlatformNotSupportedException (); - set => throw new PlatformNotSupportedException (); + get => throw new PlatformNotSupportedException ("Property MaxResponseHeadersLength is not supported."); + set => throw new PlatformNotSupportedException ("Property MaxResponseHeadersLength is not supported."); } public long MaxRequestContentBufferSize { - get => throw new PlatformNotSupportedException (); - set => throw new PlatformNotSupportedException (); + get => throw new PlatformNotSupportedException ("Property MaxRequestContentBufferSize is not supported."); + set => throw new PlatformNotSupportedException ("Property MaxRequestContentBufferSize is not supported."); } public IDictionary<string, object> Properties => throw new PlatformNotSupportedException (); |