68 instantiations of WebException
PresentationCore (1)
Core\CSharp\MS\Internal\WpfWebRequestHelper.cs (1)
95
throw new
WebException
(requestUri.ToString(), WebExceptionStatus.RequestCanceled);
System (60)
net\System\Net\_ChunkParser.cs (2)
408
throw new
WebException
(NetRes.GetWebStatusString("net_requestaborted",
525
throw new
WebException
(NetRes.GetWebStatusString("net_requestaborted",
net\System\Net\_CommandStream.cs (2)
161
return new
WebException
(
340
exception = new
WebException
(m_AbortReason);
net\System\Net\_Connection.cs (7)
3012
theException = new
WebException
(errorString,
3020
theException = new
WebException
(NetRes.GetWebStatusString("net_requestaborted", WebExceptionStatus.SecureChannelFailure),
3026
theException = new
WebException
(NetRes.GetWebStatusString("net_requestaborted", WebExceptionStatus.Timeout),
3031
theException = new
WebException
(NetRes.GetWebStatusString("net_requestaborted", WebExceptionStatus.RequestCanceled),
3039
theException = new
WebException
(NetRes.GetWebStatusString("net_connclosed", m_Error),
3072
theException = new
WebException
(NetRes.GetWebStatusString("net_connclosed", m_Error),
3081
WebException pipelineException = new
WebException
(NetRes.GetWebStatusString("net_connclosed", WebExceptionStatus.PipelineFailure),
net\System\Net\_ConnectStream.cs (15)
686
WebException we = new
WebException
(NetRes.GetWebStatusString("net_connclosed", WebExceptionStatus.SendFailure),
909
throw new
WebException
(
916
throw new
WebException
(
1019
throw new
WebException
(
1122
throw new
WebException
(
1330
throw new
WebException
(
1391
throw new
WebException
(
1398
throw new
WebException
(
1660
throw new
WebException
(
1667
throw new
WebException
(
1795
m_ErrorException = new
WebException
(
2284
e = new
WebException
(
2291
e = new
WebException
(
2675
exceptionOnWrite = new
WebException
(
2701
new
WebException
(
net\System\Net\_FtpDataStream.cs (1)
102
throw new
WebException
(
net\System\Net\Cache\RequestCacheValidator.cs (1)
187
throw new
WebException
(NetRes.GetWebStatusString("net_requestaborted", webStatus), webStatus);
net\System\Net\connectionpool.cs (2)
513
throw new
WebException
(NetRes.GetWebStatusString("net_timeout", WebExceptionStatus.ConnectFailure), WebExceptionStatus.Timeout);
582
m_ResError = new
WebException
(
net\System\Net\filewebrequest.cs (6)
381
Exception e = new
WebException
(NetRes.GetWebStatusString(WebExceptionStatus.Timeout), WebExceptionStatus.Timeout);
410
Exception e = new
WebException
(NetRes.GetWebStatusString(WebExceptionStatus.Timeout), WebExceptionStatus.Timeout);
442
Exception ex = new
WebException
(e.Message, e);
479
Exception ex = new
WebException
(e.Message, e);
523
WebException webException = new
WebException
(NetRes.GetWebStatusString("net_requestaborted", WebExceptionStatus.RequestCanceled), WebExceptionStatus.RequestCanceled);
670
throw new
WebException
(
net\System\Net\filewebresponse.cs (1)
62
Exception ex = new
WebException
(e.Message, e, WebExceptionStatus.ConnectFailure, null);
net\System\Net\FtpWebRequest.cs (9)
591
throw new
WebException
(NetRes.GetWebStatusString(WebExceptionStatus.Timeout), WebExceptionStatus.Timeout);
611
webException = new
WebException
(webException.Message,
838
throw new
WebException
(webException.Message,
911
throw new
WebException
(NetRes.GetWebStatusString(WebExceptionStatus.Timeout), WebExceptionStatus.Timeout);
1098
throw new
WebException
(NetRes.GetWebStatusString(WebExceptionStatus.Timeout), WebExceptionStatus.Timeout);
1200
throw new
WebException
(NetRes.GetWebStatusString(WebExceptionStatus.Timeout), WebExceptionStatus.Timeout);
1294
m_Exception = new
WebException
(exception.Message, null, ((WebException)exception).Status, m_FtpWebResponse);
1306
m_Exception = new
WebException
(exception.Message, exception);
1703
m_Exception = new
WebException
(NetRes.GetWebStatusString("net_requestaborted", WebExceptionStatus.RequestCanceled),
net\System\Net\HttpWebRequest.cs (6)
3152
webException = new
WebException
(NetRes.GetWebStatusString("net_requestaborted", WebExceptionStatus.RequestCanceled), WebExceptionStatus.RequestCanceled);
3156
webException = new
WebException
(NetRes.GetWebStatusString("net_requestaborted", WebExceptionStatus.RequestCanceled), exception, WebExceptionStatus.RequestCanceled, _HttpResponse);
3264
((HttpWebRequest) context).Abort(new
WebException
(NetRes.GetWebStatusString(WebExceptionStatus.Timeout), WebExceptionStatus.Timeout), AbortState.Public);
3894
E = new
WebException
(NetRes.GetWebStatusString("net_requestaborted", WebExceptionStatus.RequestCanceled), unexpectedException, WebExceptionStatus.RequestCanceled, _HttpResponse);
3905
E = new
WebException
(E.Message, E);
5623
e = new
WebException
(message, innerException, WebExceptionStatus.ProtocolError, _HttpResponse);
net\System\Net\Internal.cs (4)
981
return new
WebException
(NetRes.GetWebStatusString("net_requestaborted", WebExceptionStatus.KeepAliveFailure),WebExceptionStatus.KeepAliveFailure, WebExceptionInternalStatus.Isolated, null);
987
return new
WebException
(NetRes.GetWebStatusString("net_requestaborted", WebExceptionStatus.RequestCanceled), WebExceptionStatus.RequestCanceled);
993
return new
WebException
(NetRes.GetWebStatusString("net_requestaborted", WebExceptionStatus.CacheEntryNotFound), WebExceptionStatus.CacheEntryNotFound);
999
return new
WebException
(NetRes.GetWebStatusString("net_requestaborted", WebExceptionStatus.RequestProhibitedByCachePolicy), WebExceptionStatus.RequestProhibitedByCachePolicy);
net\System\Net\NetWebProxyFinder.cs (1)
231
throw new
WebException
(NetRes.GetWebStatusString("net_requestaborted",
net\System\Net\ServicePoint.cs (2)
274
throw new
WebException
(
1266
exception = new
WebException
(
net\System\Net\ServicePointManager.cs (1)
713
Exception exception = new
WebException
(NetRes.GetWebStatusString(WebExceptionStatus.RequestCanceled), WebExceptionStatus.RequestCanceled);
System.Web.Extensions (3)
ClientServices\Providers\ProxyHelper.cs (3)
73
throw new
WebException
(AtlasWeb.ClientService_BadJsonResponse);
85
throw new
WebException
(AtlasWeb.ClientService_BadJsonResponse);
95
throw new
WebException
(String.Format(CultureInfo.CurrentCulture, AtlasWeb.ProxyHelper_BadStatusCode, response.StatusCode.ToString(), GetResponseString(response)), we);
System.Web.Services (4)
System\Web\Services\Discovery\DiscoveryClientProtocol.cs (1)
255
throw new WebException(Res.GetString(Res.ThereWasAnErrorDownloading0, url), new
WebException
(errorMessage, null, WebExceptionStatus.ProtocolError, response));
System\Web\Services\Protocols\HttpClientProtocol.cs (1)
331
throw new
WebException
(RequestResponseUtils.CreateResponseExceptionString(httpResponse, responseStream), null,
System\Web\Services\Protocols\SoapClientProtocol.cs (2)
598
throw new
WebException
(RequestResponseUtils.CreateResponseExceptionString(httpResponse, responseStream), null,
620
throw new
WebException
(RequestResponseUtils.CreateResponseExceptionString(httpResponse, responseStream), null,
144 references to WebException
PresentationCore (2)
Core\CSharp\System\IO\Packaging\PackWebResponse.cs (1)
841
catch (
WebException
e)
Core\CSharp\System\Windows\Media\ColorContext.cs (1)
609
catch (
WebException
)
PresentationFramework (5)
src\Framework\System\Windows\Application.cs (1)
829
catch (
WebException
)
src\Framework\System\Windows\Documents\FixedDocument.cs (1)
990
if (!(e is System.Net.
WebException
|| e is System.InvalidOperationException))
src\Framework\System\Windows\Navigation\NavigationService.cs (3)
2893
catch (
WebException
e)
3082
catch (
WebException
we)
3105
catch (
WebException
e)
System (86)
net\System\Net\_CommandStream.cs (1)
548
if (e is
WebException
)
net\System\Net\_Connection.cs (10)
1094
if (exception is
WebException
) {
1095
ws = ((
WebException
)exception).Status;
1197
WebException
webException = exception as
WebException
;
2808
internal bool AbortOrDisassociate(HttpWebRequest request,
WebException
webException)
2997
if (!(theException is
WebException
) && !(theException is SecurityException))
3081
WebException
pipelineException = new WebException(NetRes.GetWebStatusString("net_connclosed", WebExceptionStatus.PipelineFailure),
3155
if (!(e is
WebException
) && NetworkStream is TlsStream)
3765
if (exception is
WebException
) {
3766
ws = ((
WebException
)exception).Status;
net\System\Net\_ConnectionGroup.cs (1)
208
private bool Abort(HttpWebRequest request,
WebException
webException)
net\System\Net\_ConnectStream.cs (1)
686
WebException
we = new WebException(NetRes.GetWebStatusString("net_connclosed", WebExceptionStatus.SendFailure),
net\System\Net\_FtpDataStream.cs (2)
80
WebException
webException = exception as
WebException
;
net\System\Net\_ProxyChain.cs (1)
66
internal bool HttpAbort(HttpWebRequest request,
WebException
webException)
net\System\Net\Cache\_RequestCacheProtocol.cs (5)
146
if(Logging.On) Logging.PrintError(Logging.RequestCache, SR.GetString(SR.net_log_cache_object_and_exception, "CacheProtocol#" + this.GetHashCode().ToString(NumberFormatInfo.InvariantInfo), (e is
WebException
? e.Message: e.ToString())));
230
if(Logging.On) Logging.PrintError(Logging.RequestCache, SR.GetString(SR.net_log_cache_object_and_exception, "CacheProtocol#" + this.GetHashCode().ToString(NumberFormatInfo.InvariantInfo), (e is
WebException
? e.Message: e.ToString())));
386
if(Logging.On) Logging.PrintError(Logging.RequestCache, SR.GetString(SR.net_log_cache_object_and_exception, "CacheProtocol#" + this.GetHashCode().ToString(NumberFormatInfo.InvariantInfo), (e is
WebException
? e.Message: e.ToString())));
441
if(Logging.On) Logging.PrintError(Logging.RequestCache, SR.GetString(SR.net_log_cache_object_and_exception, "CacheProtocol#" + this.GetHashCode().ToString(NumberFormatInfo.InvariantInfo), (e is
WebException
? e.Message: e.ToString())));
542
if(Logging.On) Logging.PrintError(Logging.RequestCache, SR.GetString(SR.net_log_cache_object_and_exception, "CacheProtocol#" + this.GetHashCode().ToString(NumberFormatInfo.InvariantInfo), (e is
WebException
? e.Message: e.ToString())));
net\System\Net\filewebrequest.cs (1)
523
WebException
webException = new WebException(NetRes.GetWebStatusString("net_requestaborted", WebExceptionStatus.RequestCanceled), WebExceptionStatus.RequestCanceled);
net\System\Net\FtpWebRequest.cs (12)
607
} catch (
WebException
webException) {
675
WebException
webException = exception as
WebException
;
833
} catch (
WebException
webException) {
857
WebException
webException = exception as
WebException
;
1126
} catch (
WebException
webException) {
1248
if (!(e is
WebException
&& ((
WebException
)e).InternalStatus == WebExceptionInternalStatus.Isolated))
1291
if (exception is
WebException
)
1294
m_Exception = new WebException(exception.Message, null, ((
WebException
)exception).Status, m_FtpWebResponse);
2226
private static int GetStatusCode(
WebException
webException)
net\System\Net\HttpWebRequest.cs (17)
1837
WebException
webException = exception as
WebException
;
1864
WebException
e = exception as
WebException
;
2095
catch (
WebException
we) {
2290
catch (
WebException
we) {
3149
WebException
webException = exception as
WebException
;
3571
WebException
newException = responseOrException as
WebException
;
3822
WebException
webException = _ReadAResult.Result as
WebException
;
3851
WebException
webException = HaveResponse ? _ReadAResult.Result as
WebException
: null;
3852
WebException
newWebException = E as
WebException
;
3902
if (!(E is
WebException
) && !(E is SecurityException))
net\System\Net\Internal.cs (5)
979
internal static
WebException
IsolatedException {
985
internal static
WebException
RequestAbortedException {
991
internal static
WebException
CacheEntryNotFoundException {
997
internal static
WebException
RequestProhibitedByCachePolicyException {
1779
internal delegate bool HttpAbortDelegate(HttpWebRequest request,
WebException
webException);
net\System\Net\webclient.cs (23)
360
if (!(e is
WebException
|| e is SecurityException)) {
404
if (!(e is
WebException
|| e is SecurityException)) {
452
if (!(e is
WebException
|| e is SecurityException)) {
507
if (!(e is
WebException
|| e is SecurityException)) {
578
if (!(e is
WebException
|| e is SecurityException)) {
725
if (!(e is
WebException
|| e is SecurityException)) {
813
if (!(e is
WebException
|| e is SecurityException)) {
1220
if (!(e is
WebException
|| e is SecurityException)) {
1259
if (!(e is
WebException
|| e is SecurityException)) {
1485
if (!(e is
WebException
|| e is SecurityException)) {
1516
if (!(e is
WebException
|| e is SecurityException)) {
1811
if (!(e is
WebException
|| e is SecurityException)) {
1844
if (!(e is
WebException
|| e is SecurityException)) {
1883
if (!(e is
WebException
|| e is SecurityException)) {
1926
if (!(e is
WebException
|| e is SecurityException)) {
1994
if (!(e is
WebException
|| e is SecurityException)) {
2048
if (!(e is
WebException
|| e is SecurityException)) {
2110
if (!(e is
WebException
|| e is SecurityException)) {
2144
if (!(e is
WebException
|| e is SecurityException)) {
2226
if (!(e is
WebException
|| e is SecurityException)) {
2322
if (!(e is
WebException
|| e is SecurityException)) {
2425
if (!(e is
WebException
|| e is SecurityException)) {
2521
if (!(e is
WebException
|| e is SecurityException)) {
net\System\Net\WebException.cs (5)
48
/// Creates a new instance of the <see cref='System.Net.
WebException
'/>
61
/// Creates a new instance of the <see cref='System.Net.
WebException
'/> class with the specified error
71
/// Creates a new instance of the <see cref='System.Net.
WebException
'/> class with the specified error
90
/// Creates a new instance of the <see cref='System.Net.
WebException
'/> class with the specified error
103
/// Creates a new instance of the <see cref='System.Net.
WebException
'/> class with the specified error
net\System\Net\WebSockets\ClientWebSocket.cs (1)
182
catch (
WebException
ex)
net\System\Net\WebSockets\WebSocketConnectionStream.cs (1)
365
error is
WebException
||
System.Data.Services.Client (9)
System\Data\Services\Client\DataServiceContext.cs (3)
1059
/// <exception cref="
WebException
">failure to get response for requestUri</exception>
5921
catch (
WebException
e)
6244
catch (
WebException
)
System\Data\Services\Client\GetReadStreamResult.cs (2)
110
catch (System.Net.
WebException
ex)
183
catch (
WebException
e)
System\Data\Services\Client\QueryResult.cs (2)
222
catch (
WebException
ex)
558
catch (
WebException
e)
System\Data\Services\Client\WebUtil.cs (2)
91
WebException
webexception = (exception as
WebException
);
System.Net (1)
AssemblyInfo.cs (1)
38
[assembly: TypeForwardedToAttribute(typeof(System.Net.
WebException
))]
System.Runtime.Remoting (3)
channels\http\httpclientchannel.cs (3)
489
catch (
WebException
webException)
508
private static void ProcessResponseException(
WebException
webException, out HttpWebResponse response)
1080
catch (
WebException
webException)
System.ServiceModel (31)
System\ServiceModel\Channels\ClientWebSocketTransportDuplexSessionChannel.cs (4)
63
catch (
WebException
ex)
101
catch (
WebException
ex)
151
catch (
WebException
ex)
203
static void TryConvertAndThrow(
WebException
ex)
System\ServiceModel\Channels\HttpChannelFactory.cs (7)
1299
WebException
responseException = null;
1329
catch (
WebException
webException)
1635
catch (
WebException
webException)
1660
WebException
responseException = null;
1692
catch (
WebException
webException)
1759
bool ProcessResponse(HttpWebResponse response,
WebException
responseException)
1880
catch (
WebException
webException)
System\ServiceModel\Channels\HttpChannelHelpers.cs (20)
46
WebException
webException;
76
internal
WebException
WebException
988
catch (
WebException
webException)
1008
catch (
WebException
webException)
1028
catch (
WebException
webException)
1049
catch (
WebException
webException)
2491
catch (
WebException
webException)
2739
catch (
WebException
webException)
2759
catch (
WebException
webException)
2824
catch (
WebException
webException)
2857
catch (
WebException
webException)
2877
catch (
WebException
webException)
2897
catch (
WebException
webException)
3500
public static HttpWebResponse ProcessGetResponseWebException(
WebException
webException, HttpWebRequest request, HttpAbortReason abortReason)
3588
public static Exception ConvertWebException(
WebException
webException, HttpWebRequest request, HttpAbortReason abortReason)
3635
public static Exception CreateResponseWebException(
WebException
webException, HttpWebResponse response)
3686
public static Exception CreateRequestWebException(
WebException
webException, HttpWebRequest request, HttpAbortReason abortReason)
3714
static Exception CreateUnexpectedResponseException(
WebException
responseException, HttpWebResponse response)
3778
WebException
responseException, HttpChannelFactory<IRequestChannel> factory)
3823
HttpChannelFactory<IRequestChannel> factory,
WebException
responseException, ChannelBinding channelBinding)
System.Web.Extensions (2)
ClientServices\Providers\ClientSettingsProvider.cs (1)
595
catch (
WebException
) {
ClientServices\Providers\ProxyHelper.cs (1)
91
} catch(
WebException
we) {
System.Web.Services (5)
System\Web\Services\Protocols\ClientProtocol.cs (5)
257
WebException
webException = e as
WebException
;
294
WebException
we = e as
WebException
;
449
catch (
WebException
e) {