Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
WebSocketException.cs
Go to the documentation of this file.
5
7
9[TypeForwardedFrom("System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
11{
13
14 public override int ErrorCode => base.NativeErrorCode;
15
17
19 : this(Marshal.GetLastPInvokeError())
20 {
21 }
22
27
28 public WebSocketException(WebSocketError error, string? message)
29 : base(message)
30 {
32 }
33
38
44
51
52 public WebSocketException(int nativeError, string? message)
53 : base(nativeError, message)
54 {
57 }
58
65
70
71 public WebSocketException(WebSocketError error, int nativeError, string? message)
72 : base(message)
73 {
76 }
77
82
89
90 public WebSocketException(string? message)
91 : base(message)
92 {
93 }
94
96 : base(message, innerException)
97 {
98 }
99
104
106 {
107 base.GetObjectData(info, context);
108 info.AddValue("WebSocketErrorCode", _webSocketErrorCode);
109 }
110
126
128 {
130 {
132 }
133 }
134
135 private static bool Succeeded(int hr)
136 {
137 return hr >= 0;
138 }
139}
WebSocketException(SerializationInfo serializationInfo, StreamingContext streamingContext)
WebSocketException(WebSocketError error, string? message)
WebSocketException(WebSocketError error, string? message, Exception? innerException)
WebSocketException(WebSocketError error, int nativeError, string? message, Exception? innerException)
WebSocketException(WebSocketError error, Exception? innerException)
WebSocketException(string? message, Exception? innerException)
override void GetObjectData(SerializationInfo info, StreamingContext context)
WebSocketException(WebSocketError error, int nativeError, string? message)
WebSocketException(WebSocketError error, int nativeError)
static string GetErrorMessage(WebSocketError error)
WebSocketException(WebSocketError error, int nativeError, Exception? innerException)
WebSocketException(int nativeError, string? message)
WebSocketException(int nativeError, Exception? innerException)
static string net_WebSockets_UnsupportedWebSocketVersion_Generic
Definition SR.cs:24
static string net_WebSockets_InvalidMessageType_Generic
Definition SR.cs:18
static string net_WebSockets_HeaderError_Generic
Definition SR.cs:28
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string net_Websockets_WebSocketBaseFaulted
Definition SR.cs:20
static string net_WebSockets_Generic
Definition SR.cs:16
static string net_WebSockets_UnsupportedProtocol_Generic
Definition SR.cs:26
static string net_WebSockets_InvalidState_Generic
Definition SR.cs:32
static string net_WebSockets_ConnectionClosedPrematurely_Generic
Definition SR.cs:30
static string net_WebSockets_NotAWebSocket_Generic
Definition SR.cs:22
Definition SR.cs:7