dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnetlib/System/Net/Sockets SocketException.cs


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/System/Net/Sockets SocketException.cs, 1.9, 1.10
Date: Wed, 17 Sep 2003 02:42:53 -0400

Update of /cvsroot/dotgnu-pnet/pnetlib/System/Net/Sockets
In directory subversions:/tmp/cvs-serv30553/System/Net/Sockets

Modified Files:
        SocketException.cs 
Log Message:


Signature-compatibility fixes in "System.Net".


Index: SocketException.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System/Net/Sockets/SocketException.cs,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** SocketException.cs  5 Sep 2003 00:59:15 -0000       1.9
--- SocketException.cs  17 Sep 2003 06:42:51 -0000      1.10
***************
*** 73,87 ****
        // Internal constructors that are used to set correct error codes.
        internal SocketException(Errno errno)
!               : base(null)
                {
                        this.errno = errno;
                }
        internal SocketException(Errno errno, String msg)
!               : base(msg)
                {
                        this.errno = errno;
                }
        internal SocketException(Errno errno, String msg, Exception inner)
!               : base(msg, inner)
                {
                        this.errno = errno;
--- 73,87 ----
        // Internal constructors that are used to set correct error codes.
        internal SocketException(Errno errno)
!               : base(DefaultMessage(null, errno))
                {
                        this.errno = errno;
                }
        internal SocketException(Errno errno, String msg)
!               : base(DefaultMessage(msg, errno))
                {
                        this.errno = errno;
                }
        internal SocketException(Errno errno, String msg, Exception inner)
!               : base(DefaultMessage(msg, errno), inner)
                {
                        this.errno = errno;
***************
*** 112,132 ****
  
        // Get the default message to use for this exception type.
!       public override String Message
                        {
!                               get
                                {
!                                       String parentMsg = base.Message;
!                                       if(parentMsg != null)
!                                       {
!                                               return parentMsg;
!                                       }
!                                       else if(errno == Errno.EREMOTEIO)
!                                       {
!                                               return S._("IO_Socket");
!                                       }
!                                       else
!                                       {
!                                               return GetErrnoMessage(errno);
!                                       }
                                }
                        }
--- 112,128 ----
  
        // Get the default message to use for this exception type.
!       private String DefaultMessage(String msg, Errno errno)
                        {
!                               if(msg != null)
!                               {
!                                       return msg;
!                               }
!                               else if(errno == Errno.EREMOTEIO)
!                               {
!                                       return S._("IO_Socket");
!                               }
!                               else
                                {
!                                       return GetErrnoMessage(errno);
                                }
                        }





reply via email to

[Prev in Thread] Current Thread [Next in Thread]