//
-// System.Net.Sockets.NetworkStream.cs
+// System.Net.Sockets.SocketException
//
// Author:
// Dick Porter <dick@ximian.com>
//
// (C) 2002 Ximian, Inc.
-//
-
+// Copyright (C) 2009 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-using System.Runtime.Serialization;
-using System.ComponentModel;
using System.Runtime.CompilerServices;
namespace System.Net.Sockets {
error_code = WSAGetLastError_internal ();
}
- public SocketException (int error)
+ public SocketException (int errorCode)
{
- error_code = error;
+ error_code = errorCode;
}
- public SocketException (int error, string message)
+ internal SocketException (int error, string message)
+ : base (message)
{
error_code = error;
}
get { return error_code; }
}
- public int NativeErrorCode {
- get { return error_code; }
- }
-
public SocketError SocketErrorCode {
get { return (SocketError) error_code; }
}