52 references to WebSocketError
System (46)
net\System\Net\WebSockets\WebSocketBase.cs (10)
427throw new WebSocketException(WebSocketError.ConnectionClosedPrematurely, objectDisposedException); 431throw new WebSocketException(WebSocketError.ConnectionClosedPrematurely, notSupportedException); 934throw new WebSocketException(WebSocketError.InvalidMessageType, 1240throw new WebSocketException(WebSocketError.NativeError, 1263throw new WebSocketException(WebSocketError.InvalidState, 1272throw new WebSocketException(WebSocketError.InvalidState, 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\WebSocketBuffer.cs (1)
565throw new WebSocketException(WebSocketError.InvalidState,
net\System\Net\WebSockets\WebSocketConnectionStream.cs (1)
136throw new WebSocketException(WebSocketError.NotAWebSocket);
net\System\Net\WebSockets\WebSocketException.cs (25)
20private WebSocketError m_WebSocketErrorCode; 31public WebSocketException(WebSocketError error) 38public WebSocketException(WebSocketError error, string message) : base(message) 45public WebSocketException(WebSocketError error, Exception innerException) 52public WebSocketException(WebSocketError error, string message, Exception innerException) 63m_WebSocketErrorCode = !WebSocketProtocolComponent.Succeeded(nativeError) ? WebSocketError.NativeError : WebSocketError.Success; 72m_WebSocketErrorCode = !WebSocketProtocolComponent.Succeeded(nativeError) ? WebSocketError.NativeError : WebSocketError.Success; 81m_WebSocketErrorCode = !WebSocketProtocolComponent.Succeeded(nativeError) ? WebSocketError.NativeError : WebSocketError.Success; 87public WebSocketException(WebSocketError error, int nativeError) 94public WebSocketException(WebSocketError error, int nativeError, string message) 103public WebSocketException(WebSocketError error, int nativeError, Exception innerException) 110public WebSocketException(WebSocketError error, int nativeError, string message, Exception innerException) 146public WebSocketError WebSocketErrorCode 154private static string GetErrorMessage(WebSocketError error) 159case WebSocketError.InvalidMessageType: 163case WebSocketError.Faulted: 165case WebSocketError.NotAWebSocket: 167case WebSocketError.UnsupportedVersion: 169case WebSocketError.UnsupportedProtocol: 171case WebSocketError.HeaderError: 173case WebSocketError.ConnectionClosedPrematurely: 175case WebSocketError.InvalidState:
net\System\Net\WebSockets\WebSocketHelpers.cs (7)
234throw new WebSocketException(WebSocketError.UnsupportedProtocol, 267throw new WebSocketException(WebSocketError.UnsupportedProtocol, 322throw new WebSocketException(WebSocketError.NotAWebSocket, 334throw new WebSocketException(WebSocketError.HeaderError, 342throw new WebSocketException(WebSocketError.UnsupportedVersion, 351throw new WebSocketException(WebSocketError.HeaderError, 526throw new WebSocketException(WebSocketError.ConnectionClosedPrematurely);
net\System\Net\WebSockets\WebSocketProtocolComponent.cs (2)
885throw new WebSocketException(WebSocketError.InvalidState, 892return new WebSocketException(WebSocketError.InvalidState,
System.ServiceModel (4)
System\ServiceModel\Channels\ClientWebSocketTransportDuplexSessionChannel.cs (1)
408new WebSocketException(WebSocketError.ConnectionClosedPrematurely).Message);
System\ServiceModel\Channels\WebSocketHelper.cs (3)
287case WebSocketError.InvalidMessageType: 288case WebSocketError.UnsupportedProtocol: 289case WebSocketError.UnsupportedVersion:
System.Web (2)
WebSockets\AspNetWebSocket.cs (2)
288throw new WebSocketException(WebSocketError.InvalidMessageType); 535throw new WebSocketException(WebSocketError.InvalidState);