18 references to WebException
Microsoft.Build.Tasks.UnitTests (1)
DownloadFile_Tests.cs (1)
217
throw new
WebException
("Error", WebExceptionStatus.ReceiveFailure);
PresentationCore (2)
MS\Internal\WpfWebRequestHelper.cs (1)
88
throw new
WebException
(requestUri.ToString(), WebExceptionStatus.RequestCanceled);
System\IO\Packaging\PackWebResponse.cs (1)
901
_responseException = new
WebException
(SR.Format(SR.WebRequestTimeout, null), WebExceptionStatus.Timeout);
System.Net.Requests (13)
System\Net\FileWebRequest.cs (4)
110
new
WebException
(SR.Format(SR.net_requestaborted, WebExceptionStatus.RequestCanceled), WebExceptionStatus.RequestCanceled);
259
throw new
WebException
(SR.net_webstatus_Timeout, WebExceptionStatus.Timeout);
275
throw new
WebException
(SR.net_webstatus_Timeout, WebExceptionStatus.Timeout);
466
throw new
WebException
(SR.Format(SR.net_requestaborted, WebExceptionStatus.RequestCanceled), WebExceptionStatus.RequestCanceled);
System\Net\FtpControlStream.cs (3)
112
throw new
WebException
(SR.net_ftp_active_address_different, WebExceptionStatus.ProtocolError);
244
throw new
WebException
(SR.net_InvalidStatusCode, WebExceptionStatus.ProtocolError);
719
throw new
WebException
(SR.net_ftp_active_address_different, WebExceptionStatus.ProtocolError);
System\Net\FtpWebRequest.cs (3)
919
SetException(ExceptionDispatchInfo.SetCurrentStackTrace(new
WebException
(SR.net_timeout, WebExceptionStatus.Timeout)));
938
return new
WebException
(SR.net_webstatus_NameResolutionFailure, WebExceptionStatus.NameResolutionFailure);
942
return new
WebException
(SR.net_webstatus_ConnectFailure, WebExceptionStatus.ConnectFailure);
System\Net\HttpWebRequest.cs (3)
1312
throw new
WebException
(SR.CacheEntryNotFound, WebExceptionStatus.CacheEntryNotFound);
1368
throw new
WebException
(SR.CacheEntryNotFound, WebExceptionStatus.CacheEntryNotFound);
1568
throw new
WebException
(SR.net_reqaborted, WebExceptionStatus.RequestCanceled);
System.Net.WebClient (2)
System\Net\WebClient.cs (2)
839
throw new
WebException
(SR.net_webstatus_MessageLengthLimitExceeded, WebExceptionStatus.MessageLengthLimitExceeded);
886
throw new
WebException
(SR.net_webstatus_MessageLengthLimitExceeded, WebExceptionStatus.MessageLengthLimitExceeded);