2004-03-29 Umadevi S (sumadevi@novell.com)
[mono.git] / mcs / class / System.Data / System.Data / MissingPrimaryKeyException.cs
1 //
2 // System.Data.MissingPrimaryKeyException.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
14
15         [Serializable]
16         public class MissingPrimaryKeyException : DataException
17         {
18                 public MissingPrimaryKeyException ()
19                         : base (Locale.GetText ("This table has no primary key"))
20                 {
21                 }
22
23                 public MissingPrimaryKeyException (string message)
24                         : base (message)
25                 {
26                 }
27
28                 protected MissingPrimaryKeyException (SerializationInfo info, StreamingContext context)
29                         : base (info, context)
30                 {
31                 }
32         }
33 }