16 instantiations of WebSocketException
System (12)
net\System\Net\WebSockets\WebSocketBase.cs (9)
427
throw new
WebSocketException
(WebSocketError.ConnectionClosedPrematurely, objectDisposedException);
431
throw new
WebSocketException
(WebSocketError.ConnectionClosedPrematurely, notSupportedException);
1331
convertedException = new
WebSocketException
(socketException.NativeErrorCode, socketException);
1337
convertedException = new
WebSocketException
(httpListenerException.ErrorCode, httpListenerException);
1346
convertedException = new
WebSocketException
(socketException.NativeErrorCode, ioException);
1455
throw new
WebSocketException
(WebSocketError.Faulted, pendingException);
1760
throw new
WebSocketException
(WebSocketError.ConnectionClosedPrematurely, objectDisposedException);
1764
throw new
WebSocketException
(WebSocketError.ConnectionClosedPrematurely, notSupportedException);
1771
throw new
WebSocketException
(WebSocketError.ConnectionClosedPrematurely);
net\System\Net\WebSockets\WebSocketConnectionStream.cs (1)
136
throw new
WebSocketException
(WebSocketError.NotAWebSocket);
net\System\Net\WebSockets\WebSocketHelpers.cs (1)
526
throw new
WebSocketException
(WebSocketError.ConnectionClosedPrematurely);
net\System\Net\WebSockets\WebSocketProtocolComponent.cs (1)
878
throw new
WebSocketException
(errorCode);
System.ServiceModel (1)
System\ServiceModel\Channels\ClientWebSocketTransportDuplexSessionChannel.cs (1)
408
new
WebSocketException
(WebSocketError.ConnectionClosedPrematurely).Message);
System.Web (3)
WebSockets\AspNetWebSocket.cs (2)
288
throw new
WebSocketException
(WebSocketError.InvalidMessageType);
535
throw new
WebSocketException
(WebSocketError.InvalidState);
WebSockets\WebSocketPipe.cs (1)
232
throw new
WebSocketException
(hrError);
11 references to WebSocketException
System (5)
net\System\Net\WebSockets\ClientWebSocket.cs (1)
185
WebSocketException
wex = new WebSocketException(SR.GetString(SR.net_webstatus_ConnectFailure), ex);
net\System\Net\WebSockets\WebSocketBase.cs (3)
1288
error is
WebSocketException
||
1320
WebSocketException
convertedException = exception as
WebSocketException
;
net\System\Net\WebSockets\WebSocketProtocolComponent.cs (1)
890
private static
WebSocketException
ConvertObjectDisposedException(WebSocketBase webSocket, ObjectDisposedException innerException)
System.ServiceModel (6)
System\ServiceModel\Channels\HttpRequestContext.cs (1)
1129
throw FxTrace.Exception.AsError<
WebSocketException
>(acceptTask.Exception);
System\ServiceModel\Channels\WebSocketHelper.cs (5)
282
WebSocketException
webSocketException = ex as
WebSocketException
;
305
Exception exception = FxTrace.Exception.AsError<
WebSocketException
>(ex);
306
WebSocketException
webSocketException = exception as
WebSocketException
;