示例#1
0
 public HttpListenerException() : base(Marshal.GetLastWin32Error())
 {
     if (NetEventSource.IsEnabled)
     {
         NetEventSource.Info(this, NativeErrorCode.ToString() + ":" + Message);
     }
 }
示例#2
0
 public HttpListenerException(int errorCode, string message) : base(errorCode, message)
 {
     if (NetEventSource.IsEnabled)
     {
         NetEventSource.Info(this, NativeErrorCode.ToString() + ":" + Message);
     }
 }
示例#3
0
 /// <devdoc>
 ///    <para>
 ///       Creates a new instance of the <see cref='System.Net.Sockets.SocketException'/> class with the specified error code.
 ///    </para>
 /// </devdoc>
 public SocketException(int errorCode) : base(errorCode)
 {
     if (GlobalLog.IsEnabled)
     {
         GlobalLog.Print("SocketException::.ctor(int) " + NativeErrorCode.ToString() + ":" + Message);
     }
 }
示例#4
0
 /// <devdoc>
 ///    <para>
 ///       Creates a new instance of the <see cref='System.Net.Sockets.SocketException'/> class with the default error code.
 ///    </para>
 /// </devdoc>
 public SocketException() : base(Marshal.GetLastWin32Error())
 {
     if (GlobalLog.IsEnabled)
     {
         GlobalLog.Print("SocketException::.ctor() " + NativeErrorCode.ToString() + ":" + Message);
     }
 }
 protected SocketException(SerializationInfo serializationInfo, StreamingContext streamingContext)
     : base(serializationInfo, streamingContext)
 {
     if (GlobalLog.IsEnabled)
     {
         GlobalLog.Print("SocketException::.ctor(serialized) " + NativeErrorCode.ToString() + ":" + Message);
     }
 }
示例#6
0
 protected HttpListenerException(SerializationInfo serializationInfo, StreamingContext streamingContext)
     : base(serializationInfo, streamingContext)
 {
     if (NetEventSource.IsEnabled)
     {
         NetEventSource.Info(this, NativeErrorCode.ToString() + ":" + Message);
     }
 }
 protected HttpListenerException(SerializationInfo serializationInfo, StreamingContext streamingContext)
     : base(serializationInfo, streamingContext)
 {
     GlobalLog.Print("HttpListenerException::.ctor(serialized) " + NativeErrorCode.ToString() + ":" + Message);
 }
 public HttpListenerException(int errorCode, string message) : base(errorCode, message)
 {
     GlobalLog.Print("HttpListenerException::.ctor(int) " + NativeErrorCode.ToString() + ":" + Message);
 }
 public HttpListenerException() : base(Marshal.GetLastWin32Error())
 {
     GlobalLog.Print("HttpListenerException::.ctor() " + NativeErrorCode.ToString() + ":" + Message);
 }