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