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 WebException.cs,1.2,1.3


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/System/Net WebException.cs,1.2,1.3
Date: Fri, 04 Apr 2003 19:35:18 -0500

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

Modified Files:
        WebException.cs 
Log Message:


Add the appropriate HResult values to all exception classes.


Index: WebException.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System/Net/WebException.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** WebException.cs     21 Apr 2002 03:24:53 -0000      1.2
--- WebException.cs     5 Apr 2003 00:35:16 -0000       1.3
***************
*** 32,40 ****
        // Constructors.
        public WebException()
!               : base(S._("Exception_Web")) {}
        public WebException(String msg)
!               : base(msg) {}
        public WebException(String msg, Exception inner)
!               : base(msg, inner) {}
        public WebException(String msg, WebExceptionStatus status)
                : base(msg)
--- 32,55 ----
        // Constructors.
        public WebException()
!               : base(S._("Exception_Web"))
!               {
!               #if !ECMA_COMPAT
!                       HResult = (int)0x80131509;
!               #endif
!               }
        public WebException(String msg)
!               : base(msg)
!               {
!               #if !ECMA_COMPAT
!                       HResult = (int)0x80131509;
!               #endif
!               }
        public WebException(String msg, Exception inner)
!               : base(msg, inner)
!               {
!               #if !ECMA_COMPAT
!                       HResult = (int)0x80131509;
!               #endif
!               }
        public WebException(String msg, WebExceptionStatus status)
                : base(msg)
***************
*** 42,45 ****
--- 57,63 ----
                                myresponse = null;
                                mystatus = status;
+                       #if !ECMA_COMPAT
+                               HResult = (int)0x80131509;
+                       #endif
                        }
        public WebException(String msg, Exception inner, 





reply via email to

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