Exemplo n.º 1
0
 public HttpListenerException() : base(Marshal.GetLastWin32Error())
 {
     if (NetEventSource.IsEnabled)
     {
         NetEventSource.Info(this, NativeErrorCode.ToString() + ":" + Message);
     }
 }
Exemplo n.º 2
0
 public HttpListenerException(int errorCode, string message) : base(errorCode, message)
 {
     if (NetEventSource.IsEnabled)
     {
         NetEventSource.Info(this, NativeErrorCode.ToString() + ":" + Message);
     }
 }
Exemplo n.º 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);
     }
 }
Exemplo n.º 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);
     }
 }
Exemplo n.º 6
0
 protected HttpListenerException(SerializationInfo serializationInfo, StreamingContext streamingContext)
     : base(serializationInfo, streamingContext)
 {
     if (NetEventSource.IsEnabled)
     {
         NetEventSource.Info(this, NativeErrorCode.ToString() + ":" + Message);
     }
 }
Exemplo n.º 7
0
 protected HttpListenerException(SerializationInfo serializationInfo, StreamingContext streamingContext)
     : base(serializationInfo, streamingContext)
 {
     GlobalLog.Print("HttpListenerException::.ctor(serialized) " + NativeErrorCode.ToString() + ":" + Message);
 }
Exemplo n.º 8
0
 public HttpListenerException(int errorCode, string message) : base(errorCode, message)
 {
     GlobalLog.Print("HttpListenerException::.ctor(int) " + NativeErrorCode.ToString() + ":" + Message);
 }
Exemplo n.º 9
0
 public HttpListenerException() : base(Marshal.GetLastWin32Error())
 {
     GlobalLog.Print("HttpListenerException::.ctor() " + NativeErrorCode.ToString() + ":" + Message);
 }