Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
HttpListenerException.cs
Go to the documentation of this file.
5
6namespace System.Net;
7
9[TypeForwardedFrom("System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
11{
12 public override int ErrorCode => base.NativeErrorCode;
13
15 : base(Marshal.GetLastPInvokeError())
16 {
17 if (System.Net.NetEventSource.Log.IsEnabled())
18 {
19 System.Net.NetEventSource.Info(this, $"{base.NativeErrorCode}:{Message}", ".ctor");
20 }
21 }
22
25 {
26 if (System.Net.NetEventSource.Log.IsEnabled())
27 {
28 System.Net.NetEventSource.Info(this, $"{base.NativeErrorCode}:{Message}", ".ctor");
29 }
30 }
31
32 public HttpListenerException(int errorCode, string message)
33 : base(errorCode, message)
34 {
35 if (System.Net.NetEventSource.Log.IsEnabled())
36 {
37 System.Net.NetEventSource.Info(this, $"{base.NativeErrorCode}:{Message}", ".ctor");
38 }
39 }
40
43 {
44 if (System.Net.NetEventSource.Log.IsEnabled())
45 {
46 System.Net.NetEventSource.Info(this, $"{base.NativeErrorCode}:{Message}", ".ctor");
47 }
48 }
49}
HttpListenerException(SerializationInfo serializationInfo, StreamingContext streamingContext)
HttpListenerException(int errorCode, string message)
static readonly System.Net.NetEventSource Log
static void Info(object thisOrContextObject, FormattableString formattableString=null, [CallerMemberName] string memberName=null)