2006-12-12 Atsushi Enomoto <atsushi@ximian.com>
[mono.git] / mcs / class / System.Web.Services / System.Web.Services.Protocols / SoapHeaderException.cs
index fef034ff40d1c752346d92b1c4bea8969f8defff..6e4236a2f7a2298e4eb77556c43685ab055563bd 100644 (file)
@@ -1,11 +1,11 @@
-// \r
-// System.Web.Services.Protocols.SoapHeaderException.cs\r
-//\r
-// Author:\r
-//   Tim Coleman (tim@timcoleman.com)\r
-//\r
-// Copyright (C) Tim Coleman, 2002\r
-//\r
+// 
+// System.Web.Services.Protocols.SoapHeaderException.cs
+//
+// Author:
+//   Tim Coleman (tim@timcoleman.com)
+//
+// Copyright (C) Tim Coleman, 2002
+//
 
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-\r
-using System.Xml;\r
-\r
-namespace System.Web.Services.Protocols \r
-{\r
-       [Serializable]\r
-       public class SoapHeaderException : SoapException {\r
-\r
-               #region Constructors\r
-\r
-               public SoapHeaderException (string message, XmlQualifiedName code)\r
-                       : base (message, code)\r
-               {\r
-               }\r
-\r
-               public SoapHeaderException (string message, XmlQualifiedName code, Exception innerException)\r
-                       : base (message, code, innerException)\r
-               {\r
-               }\r
-\r
-               public SoapHeaderException (string message, XmlQualifiedName code, string actor)\r
-                       : base (message, code, actor)\r
-               {\r
-               }\r
-\r
-               public SoapHeaderException (string message, XmlQualifiedName code, string actor, Exception innerException)\r
-                       : base (message, code, actor, innerException)\r
-               {\r
-               }\r
-               \r
-#if NET_2_0\r
-\r
-               public SoapHeaderException (\r
-                       string message, \r
-                       XmlQualifiedName code, \r
-                       string actor, \r
-                       string role, \r
-                       string lang, \r
-                       SoapFaultSubcode subcode, \r
-                       Exception innerException)\r
-                       \r
-               : base (message, code, actor, role, lang, null, subcode, innerException)\r
-               {\r
-                       \r
-               }\r
-\r
-               public SoapHeaderException (\r
-                       string message, \r
-                       XmlQualifiedName code, \r
-                       string actor, \r
-                       string role, \r
-                       SoapFaultSubcode subcode, \r
-                       Exception innerException)\r
-                       \r
-               : base (message, code, actor, role, null, subcode, innerException)\r
-               {\r
-                       \r
-               }\r
-\r
-#endif\r
-\r
-               #endregion // Constructors\r
-       }\r
-}\r
+
+using System.Runtime.Serialization;
+using System.Xml;
+
+namespace System.Web.Services.Protocols 
+{
+#if NET_2_0
+       [Serializable]
+#endif
+       public class SoapHeaderException : SoapException {
+
+               #region Constructors
+
+#if NET_2_0
+               public SoapHeaderException ()
+                       : this ("SOAP header error", XmlQualifiedName.Empty)
+               {
+               }
+#endif
+
+               public SoapHeaderException (string message, XmlQualifiedName code)
+                       : base (message, code)
+               {
+               }
+
+               public SoapHeaderException (string message, XmlQualifiedName code, Exception innerException)
+                       : base (message, code, innerException)
+               {
+               }
+
+               public SoapHeaderException (string message, XmlQualifiedName code, string actor)
+                       : base (message, code, actor)
+               {
+               }
+
+               public SoapHeaderException (string message, XmlQualifiedName code, string actor, Exception innerException)
+                       : base (message, code, actor, innerException)
+               {
+               }
+               
+#if NET_2_0
+
+               public SoapHeaderException (
+                       string message, 
+                       XmlQualifiedName code, 
+                       string actor, 
+                       string role, 
+                       string lang, 
+                       SoapFaultSubCode subcode, 
+                       Exception innerException)
+                       
+               : base (message, code, actor, role, lang, null, subcode, innerException)
+               {
+                       
+               }
+
+               public SoapHeaderException (
+                       string message, 
+                       XmlQualifiedName code, 
+                       string actor, 
+                       string role, 
+                       SoapFaultSubCode subcode, 
+                       Exception innerException)
+                       
+               : base (message, code, actor, role, null, subcode, innerException)
+               {
+                       
+               }
+
+               protected SoapHeaderException (SerializationInfo info, StreamingContext context)
+                       : base (info, context)
+               {
+               }
+#endif
+
+               #endregion // Constructors
+       }
+}