2004-03-03 Atsushi Enomoto <atsushi@ximian.com>
[mono.git] / mcs / class / System.Data / System.Data / DBConcurrencyException.cs
1 //
2 // System.Data.DBConcurrencyException.cs
3 //
4 // Author: Duncan Mak  (duncan@ximian.com)
5 //
6 // (C) Ximian, Inc.
7
8 using System;
9 using System.Globalization;
10 using System.Runtime.Serialization;
11
12 namespace System.Data {
13         [Serializable]
14         public sealed class DBConcurrencyException : SystemException
15         {
16                 DataRow row;
17
18                 #region Constructors
19 #if NET_1_1
20                 public DBConcurrencyException ()
21                         : base ()
22                 {
23                 }
24 #endif
25                 public DBConcurrencyException (string message)
26                         : base (message)
27                 {
28                 }
29
30                 public DBConcurrencyException (string message, Exception innerException)
31                         : base (message, innerException)
32                 {
33                 }
34
35 #if NET_1_2
36                 public DBConcurrencyException (DataRow[] dataRows, string message, Exception inner)
37                         : base (message, inner)
38                 {
39                 }
40 #endif
41                 #endregion // Constructors
42
43                 #region Properties
44
45                 public DataRow Row {
46                         get { return row; }
47                         set { row = value;} // setting the row has no effect
48                 }
49
50 #if NET_1_2
51                 [MonoTODO]
52                 public int RowCount {
53                         get { throw new NotImplementedException (); }
54                 }
55 #endif
56
57                 #endregion // Properties
58
59                 #region Methods
60
61 #if NET_1_2
62                 [MonoTODO]
63                 public void CopyToRows (DataRow[] array)
64                 {
65                         throw new NotImplementedException ();
66                 }
67 #endif
68
69 #if NET_1_2
70                 [MonoTODO]
71                 public void CopyToRows (DataRow[] array, int ArrayIndex)
72                 {
73                         throw new NotImplementedException ();
74                 }
75 #endif
76                 [MonoTODO]
77                 public override void GetObjectData (SerializationInfo info, StreamingContext context)
78                 {
79                         base.GetObjectData (info, context);
80                 }
81
82                 #endregion // Methods
83         }
84 }