2010-07-23 Veerapuram Varadhan <v.varadhan@gmail.com>
[mono.git] / mcs / class / System.Data / System.Data / NoNullAllowedException.cs
index 75d5645cd97e6b099c3d9ce33d302a7d14d403d9..d61be7ba5c31b868fb779ccf8b6f736d214ce31c 100644 (file)
@@ -32,8 +32,8 @@ using System;
 using System.Globalization;
 using System.Runtime.Serialization;
 
-namespace System.Data {
-
+namespace System.Data
+{
        [Serializable]
        public class NoNullAllowedException : DataException
        {
@@ -42,10 +42,17 @@ namespace System.Data {
                {
                }
 
-               public NoNullAllowedException (string message)
-                       : base (message)
+               public NoNullAllowedException (string s)
+                       : base (s)
+               {
+               }
+
+#if NET_2_0
+               public NoNullAllowedException (string message, Exception inner)
+                       : base (message, inner)
                {
                }
+#endif
 
                protected NoNullAllowedException (SerializationInfo info, StreamingContext context)
                        : base (info, context)