Author: uma
Date: 2005-05-24 23:29:25 -0400 (Tue, 24 May 2005)
New Revision: 44962

Added:
   trunk/mcs/class/System.Data/System.Data.Common/DbException.cs
Modified:
   trunk/mcs/class/System.Data/System.Data.Common/ChangeLog
Log:
Added DbException.cs

Modified: trunk/mcs/class/System.Data/System.Data.Common/ChangeLog
===================================================================
--- trunk/mcs/class/System.Data/System.Data.Common/ChangeLog    2005-05-25 
03:29:04 UTC (rev 44961)
+++ trunk/mcs/class/System.Data/System.Data.Common/ChangeLog    2005-05-25 
03:29:25 UTC (rev 44962)
@@ -70,6 +70,9 @@
        * DbDataAdapter.cs: Update: If  SourceColumn is null, do not set
        value for the parameter.
 
+2005-05-25 Umadevi S <[EMAIL PROTECTED]>
+       * Added DbException.cs
+
 2005-03-23  Sureshkumar T  <[EMAIL PROTECTED]>
 
        * DbDataAdapter.cs: For Update, disable ReadOnly constraint

Added: trunk/mcs/class/System.Data/System.Data.Common/DbException.cs
===================================================================
--- trunk/mcs/class/System.Data/System.Data.Common/DbException.cs       
2005-05-25 03:29:04 UTC (rev 44961)
+++ trunk/mcs/class/System.Data/System.Data.Common/DbException.cs       
2005-05-25 03:29:25 UTC (rev 44962)
@@ -0,0 +1,64 @@
+//
+// System.Data.Common.DbException.cs
+//
+// Author: Umadevi S  ([EMAIL PROTECTED])
+//
+
+//
+// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+using System;
+using System.Globalization;
+using System.Runtime.Serialization;
+using System.Runtime.InteropServices;
+
+namespace System.Data {
+       [Serializable]
+       public abstract class DbException : ExternalException
+       {
+               protected DbException ()
+               {
+               }
+
+               protected DbException (string message) : base(message) 
+               {
+               }
+
+               protected DbException (string message, Exception innerException)
+                       : base (message, innerException)
+               {
+               }
+
+               protected DbException (SerializationInfo info, StreamingContext 
context)
+                       : base (info, context)
+               {
+               }
+
+               protected DbException (string message, int errorcode) : 
base(message,errorcode) 
+               {
+               }
+       }
+}
+
+#endif

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to