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