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

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

[dotgnu-pnet-commits] pnetlib ./ChangeLog DotGNU.XmlRpc/XmlRpcExcepti...


From: Deryk Robosson
Subject: [dotgnu-pnet-commits] pnetlib ./ChangeLog DotGNU.XmlRpc/XmlRpcExcepti...
Date: Sun, 14 May 2006 11:00:47 +0000

CVSROOT:        /sources/dotgnu-pnet
Module name:    pnetlib
Branch:         
Changes by:     Deryk Robosson <address@hidden> 06/05/14 11:00:47

Modified files:
        .              : ChangeLog 
        DotGNU.XmlRpc  : XmlRpcException.cs 

Log message:
        add [Serializable] attribute.  Implement standard exception 
constructors.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/dotgnu-pnet/pnetlib/ChangeLog.diff?tr1=1.2402&tr2=1.2403&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/dotgnu-pnet/pnetlib/DotGNU.XmlRpc/XmlRpcException.cs.diff?tr1=1.1&tr2=1.2&r1=text&r2=text

Patches:
Index: pnetlib/ChangeLog
diff -u pnetlib/ChangeLog:1.2402 pnetlib/ChangeLog:1.2403
--- pnetlib/ChangeLog:1.2402    Sun May 14 09:14:13 2006
+++ pnetlib/ChangeLog   Sun May 14 11:00:46 2006
@@ -5,6 +5,8 @@
        * DotGNU.Images/Image.cs: Validate argument of public method.
        * DotGNU.XmlRpc/XmlRpcMethod.cs: use StringBuilder for concat within
        loops.
+       * DotGNU.XmlRpc/XmlRpcException.cs: Implement standard exception
+       constructors.  Add [Serializable] attribute.
 
 2006-05-13  Deryk Robosson  <address@hidden>
 
Index: pnetlib/DotGNU.XmlRpc/XmlRpcException.cs
diff -u pnetlib/DotGNU.XmlRpc/XmlRpcException.cs:1.1 
pnetlib/DotGNU.XmlRpc/XmlRpcException.cs:1.2
--- pnetlib/DotGNU.XmlRpc/XmlRpcException.cs:1.1        Tue May  4 17:00:46 2004
+++ pnetlib/DotGNU.XmlRpc/XmlRpcException.cs    Sun May 14 11:00:47 2006
@@ -17,19 +17,30 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
  *
- * $Revision: 1.1 $  $Date: 2004/05/04 17:00:46 $
+ * $Revision: 1.2 $  $Date: 2006/05/14 11:00:47 $
  * 
  * --------------------------------------------------------------------------
  */
 using System;
 using System.Xml;
+using System.Runtime.Serialization;
 
 namespace DotGNU.XmlRpc
 {
+  [Serializable()]
   public class XmlRpcException : Exception
   {
     private int faultCode;
 
+    public XmlRpcException()
+    {
+    }
+
+    public XmlRpcException( string message)
+      : base( message )
+    {
+    }
+
     public XmlRpcException( int faultCode, string message ) 
       : base( message )
     {
@@ -41,6 +52,11 @@
       base.HResult = e.HResult;
     }
 
+    public XmlRpcException(SerializationInfo info, StreamingContext context)
+       : base( info, context )
+    {
+    }
+
     public int FaultCode 
     {
       get {
@@ -49,76 +65,132 @@
     }    
   }
 
+  [Serializable()]
   public class XmlRpcBadFormatException : XmlRpcException
   {
+    public XmlRpcBadFormatException()
+      : base()
+    {
+    }
+    public XmlRpcBadFormatException( string message)
+      : base( message )
+    {
+    }
     public XmlRpcBadFormatException( int faultCode, string message ) 
       : base( faultCode, message ) 
     { 
     }  
+    public XmlRpcBadFormatException(SerializationInfo info, StreamingContext 
context)
+       : base( info, context )
+    {
+    }
   }  
-
+  [Serializable()]
   public class XmlRpcInvalidStateException : XmlRpcException
   {
+    public XmlRpcInvalidStateException()
+      : base()
+    {
+    }
     public XmlRpcInvalidStateException( string message ) 
       : base( 200, message ) 
     {
     }
+    public XmlRpcInvalidStateException(SerializationInfo info, 
StreamingContext context)
+       : base( info, context )
+    {
+    }
   }
 
+  [Serializable()]
   public class XmlRpcInvalidXmlRpcException : ApplicationException
   {
     public XmlRpcInvalidXmlRpcException() { }  
     public XmlRpcInvalidXmlRpcException( String text ) : base(text) { }  
     public XmlRpcInvalidXmlRpcException( String text, Exception iex ) 
             : base(text, iex) { }  
+    public XmlRpcInvalidXmlRpcException(SerializationInfo info, 
StreamingContext context)
+       : base( info, context )
+    {
+    }
   }
 
+  [Serializable()]
   public class XmlRpcBadMethodException : ApplicationException
   {
     public XmlRpcBadMethodException() { }  
     public XmlRpcBadMethodException( String text ) : base(text) { }  
     public XmlRpcBadMethodException( String text, Exception iex ) 
             : base(text, iex) { }  
+    public XmlRpcBadMethodException(SerializationInfo info, StreamingContext 
context)
+       : base( info, context )
+    {
+    }
   }
 
+  [Serializable()]
   public class XmlRpcBadValueException : ApplicationException
   {
     public XmlRpcBadValueException() { }  
     public XmlRpcBadValueException( String text ) : base(text) { }  
     public XmlRpcBadValueException( String text, Exception iex ) 
             : base(text, iex) { }  
+    public XmlRpcBadValueException(SerializationInfo info, StreamingContext 
context)
+       : base( info, context )
+    {
+    }
   }
 
+  [Serializable()]
   public class XmlRpcNullReferenceException : ApplicationException
   {
     public XmlRpcNullReferenceException() { }  
     public XmlRpcNullReferenceException( String text ) : base(text) { }  
     public XmlRpcNullReferenceException( String text, Exception iex ) 
             : base(text, iex) { }  
+    public XmlRpcNullReferenceException(SerializationInfo info, 
StreamingContext context)
+       : base( info, context )
+    {
+    }
   }
 
+  [Serializable()]
   public class XmlRpcInvalidParametersException : ApplicationException
   {
     public XmlRpcInvalidParametersException() { }  
     public XmlRpcInvalidParametersException( String text ) : base(text) { }  
     public XmlRpcInvalidParametersException( String text, Exception iex ) 
             : base(text, iex) { }  
+    public XmlRpcInvalidParametersException(SerializationInfo info, 
StreamingContext context)
+       : base( info, context )
+    {
+    }
   }
 
+  [Serializable()]
   public class XmlRpcTypeMismatchException : ApplicationException
   {
     public XmlRpcTypeMismatchException() { }  
     public XmlRpcTypeMismatchException( String text ) : base(text) { }  
     public XmlRpcTypeMismatchException( String text, Exception iex ) 
             : base(text, iex) { }  
+    public XmlRpcTypeMismatchException(SerializationInfo info, 
StreamingContext context)
+       : base( info, context )
+    {
+    }
   }
 
+  [Serializable()]
   public class XmlRpcBadAssemblyException : ApplicationException
   {
     public XmlRpcBadAssemblyException() { }  
     public XmlRpcBadAssemblyException( String text ) : base(text) { }  
     public XmlRpcBadAssemblyException( String text, Exception iex ) 
             : base(text, iex) { }  
+    public XmlRpcBadAssemblyException(SerializationInfo info, StreamingContext 
context)
+       : base( info, context )
+    {
+    }
   }
   
 }




reply via email to

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