23 instantiations of WebException
dotnet-svcutil-lib (1)
Metadata\MetadaExchangeResolver.cs (1)
293throw new WebException(errorMsg, null, WebExceptionStatus.ProtocolError, webResponse);
PresentationCore (7)
MS\Internal\WpfWebRequestHelper.cs (1)
77throw new WebException(requestUri.ToString(), WebExceptionStatus.RequestCanceled);
System\IO\Packaging\PackWebRequest.cs (3)
133throw new WebException(SR.ResourceNotFoundUnderCacheOnlyPolicy); 143throw new WebException(SR.PackWebRequestCachePolicyIllegal); 209throw new WebException(SR.PackWebRequestCachePolicyIllegal);
System\IO\Packaging\PackWebResponse.cs (3)
233throw new WebException(SR.WebResponsePartNotFound); 847throw new WebException(SR.WebResponseFailure); 885_responseException = new WebException(SR.Format(SR.WebRequestTimeout, null), WebExceptionStatus.Timeout);
System.Net.HttpListener (1)
System\Net\Managed\ChunkStream.cs (1)
392WebException we = new WebException(message, null, WebExceptionStatus.ServerProtocolViolation, null);
System.Net.WebClient (14)
System\Net\WebClient.cs (14)
312throw new WebException(SR.net_webclient, e); 342throw new WebException(SR.net_webclient, e); 377throw new WebException(SR.net_webclient, e); 415throw new WebException(SR.net_webclient, e); 467throw new WebException(SR.net_webclient, e); 489throw new WebException(SR.net_webclient_Multipart); 582throw new WebException(SR.net_webclient, e); 597throw new WebException(SR.net_webclient_ContentType); 647throw new WebException(SR.net_webclient, e); 839throw new WebException(SR.net_webstatus_MessageLengthLimitExceeded, WebExceptionStatus.MessageLengthLimitExceeded); 863throw new WebException(SR.net_webclient, e); 886throw new WebException(SR.net_webstatus_MessageLengthLimitExceeded, WebExceptionStatus.MessageLengthLimitExceeded); 1000throw new WebException(SR.net_webclient, e); 1527e is WebException || e is SecurityException ? e : new WebException(SR.net_webclient, e);
39 references to WebException
dotnet-openapi (1)
Commands\BaseCommand.cs (1)
329if (exception is HttpRequestException || exception is WebException)
dotnet-svcutil-lib (8)
CmdCredentialsProvider.cs (1)
23public NetworkCredential GetCredentials(Uri serviceUri, WebException webException)
Metadata\HttpAuthenticationHelper.cs (4)
33public static HttpWebResponse GetUnauthorizedResponse(WebException webException) 42webException = GetException<WebException>(webException.InnerException); 50public static HttpWebResponse GetForbiddenResponse(WebException webException) 60webException = GetException<WebException>(webException.InnerException);
Metadata\IHttpCredentialsProvider.cs (1)
12NetworkCredential GetCredentials(Uri serviceUri, WebException webException);
Metadata\MetadaExchangeResolver.cs (2)
306WebException webException = HttpAuthenticationHelper.GetException<WebException>(exception);
GenerateDocumentationAndConfigFiles (1)
Program.cs (1)
857catch (WebException)
Microsoft.AspNetCore.Http.Connections.Client (1)
Internal\LongPollingTransport.cs (1)
169catch (WebException ex) when (!OperatingSystem.IsBrowser() && ex.Status == WebExceptionStatus.RequestCanceled)
Microsoft.AspNetCore.Server.IntegrationTesting (1)
Common\RetryHelper.cs (1)
56if (exception is HttpRequestException || exception is WebException)
Microsoft.Extensions.Diagnostics.ExceptionSummarization (3)
ExceptionSummarizationBuilderExtensions.cs (1)
17/// Registers a summary provider that handles <see cref="OperationCanceledException"/>, <see cref="WebException"/>, and <see cref="SocketException"/> .
HttpExceptionSummaryProvider.cs (2)
76typeof(WebException), 94case WebException ex:
Microsoft.ML.Core (2)
Utilities\ResourceManagerUtils.cs (2)
294catch (WebException e) 321catch (WebException e)
netstandard (1)
netstandard.cs (1)
1301[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.WebException))]
PresentationCore (3)
MS\Internal\Text\TextInterface\DWriteUtil.cs (1)
56if (e is System.Net.WebException)
System\IO\Packaging\PackWebResponse.cs (1)
780catch (WebException e)
System\Windows\Media\ColorContext.cs (1)
499catch (WebException)
PresentationFramework (4)
System\Windows\Application.cs (1)
688catch (WebException)
System\Windows\Documents\FixedDocument.cs (1)
954if (!(e is System.Net.WebException || e is System.InvalidOperationException))
System\Windows\Navigation\NavigationService.cs (2)
2644catch (WebException e) 2822catch (WebException e)
ReachFramework (1)
Serialization\ImageSourceTypeConverter.cs (1)
240catch (WebException)
System (1)
src\libraries\shims\System\ref\System.cs (1)
791[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.WebException))]
System.Net (1)
System.Net.cs (1)
51[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.WebException))]
System.Net.HttpListener (1)
System\Net\Managed\ChunkStream.cs (1)
392WebException we = new WebException(message, null, WebExceptionStatus.ServerProtocolViolation, null);
System.Net.WebClient (10)
System\Net\WebClient.cs (10)
311if (e is WebException || e is SecurityException) throw; 341if (e is WebException || e is SecurityException) throw; 376if (e is WebException || e is SecurityException) throw; 414if (e is WebException || e is SecurityException) throw; 466if (e is WebException || e is SecurityException) throw; 581if (e is WebException || e is SecurityException) throw; 646if (e is WebException || e is SecurityException) throw; 862if (e is WebException || e is SecurityException) throw; 999if (e is WebException || e is SecurityException) throw; 1527e is WebException || e is SecurityException ? e : new WebException(SR.net_webclient, e);