26 references to WebException
Microsoft.Extensions.Diagnostics.ExceptionSummarization.Tests (9)
ExceptionSummarizerTests.cs (7)
46
var exception = new
WebException
("test", WebExceptionStatus.RequestCanceled);
64
var exception = new
WebException
("test", WebExceptionStatus.RequestCanceled);
83
var exception = new Exception("test", new
WebException
("Error", (WebExceptionStatus)30));
104
var exception = new
WebException
("test", WebExceptionStatus.RequestCanceled);
122
var exception = new
WebException
("test", WebExceptionStatus.RequestCanceled);
142
var exception = new
WebException
("test", WebExceptionStatus.ConnectFailure);
161
var exception = new Exception("test", new
WebException
("test", WebExceptionStatus.RequestCanceled));
HttpExceptionSummaryProviderTests.cs (2)
71
Exception exception = new
WebException
("test", webExceptionStatus);
82
var exception = new
WebException
("test", (WebExceptionStatus)12345);
PresentationCore (2)
MS\Internal\WpfWebRequestHelper.cs (1)
77
throw new
WebException
(requestUri.ToString(), WebExceptionStatus.RequestCanceled);
System\IO\Packaging\PackWebResponse.cs (1)
885
_responseException = new
WebException
(SR.Format(SR.WebRequestTimeout, null), WebExceptionStatus.Timeout);
System.Net.Requests (13)
System\Net\FileWebRequest.cs (4)
112
new
WebException
(SR.Format(SR.net_requestaborted, WebExceptionStatus.RequestCanceled), WebExceptionStatus.RequestCanceled);
261
throw new
WebException
(SR.net_webstatus_Timeout, WebExceptionStatus.Timeout);
277
throw new
WebException
(SR.net_webstatus_Timeout, WebExceptionStatus.Timeout);
468
throw new
WebException
(SR.Format(SR.net_requestaborted, WebExceptionStatus.RequestCanceled), WebExceptionStatus.RequestCanceled);
System\Net\FtpControlStream.cs (3)
115
throw new
WebException
(SR.net_ftp_active_address_different, WebExceptionStatus.ProtocolError);
261
throw new
WebException
(SR.net_InvalidStatusCode, WebExceptionStatus.ProtocolError);
748
throw new
WebException
(SR.net_ftp_active_address_different, WebExceptionStatus.ProtocolError);
System\Net\FtpWebRequest.cs (3)
922
SetException(ExceptionDispatchInfo.SetCurrentStackTrace(new
WebException
(SR.net_timeout, WebExceptionStatus.Timeout)));
941
return new
WebException
(SR.net_webstatus_NameResolutionFailure, WebExceptionStatus.NameResolutionFailure);
945
return new
WebException
(SR.net_webstatus_ConnectFailure, WebExceptionStatus.ConnectFailure);
System\Net\HttpWebRequest.cs (3)
1340
throw new
WebException
(SR.CacheEntryNotFound, WebExceptionStatus.CacheEntryNotFound);
1396
throw new
WebException
(SR.CacheEntryNotFound, WebExceptionStatus.CacheEntryNotFound);
1596
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);