System\Net\WebClient.cs (16)
95throw new NotSupportedException(SR.net_webclient_no_concurrent_io_allowed);
170throw new ArgumentException(SR.net_webclient_invalid_baseaddress, nameof(value), e);
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);