Changeset 377 for binary-improvements2/SpaceWizards.HttpListener/src/System/Net/HttpListenerException.cs
- Timestamp:
- Aug 1, 2022, 12:26:44 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements2/SpaceWizards.HttpListener/src/System/Net/HttpListenerException.cs
r376 r377 1 1 // Licensed to the .NET Foundation under one or more agreements. 2 2 // The .NET Foundation licenses this file to you under the MIT license. 3 4 // ReSharper disable RedundantUsingDirective 5 // ReSharper disable VirtualMemberCallInConstructor 3 6 4 7 using System; … … 13 16 public class HttpListenerException : Win32Exception 14 17 { 18 #if !UNITY_NETFRAMEWORK 15 19 public HttpListenerException() : base(Marshal.GetLastPInvokeError()) 16 20 { 17 21 if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"{NativeErrorCode}:{Message}"); 18 22 } 19 23 #endif 24 20 25 public HttpListenerException(int errorCode) : base(errorCode) 21 26 {
Note:
See TracChangeset
for help on using the changeset viewer.