Added a missing line to enable Locale.GetText.
[mono.git] / mcs / class / System.Data / System.Data / InvalidConstraintException.cs
1 //
2 // System.Data.InvalidConstraintException.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         [Serializable]                  
15         public class InvalidConstraintException : DataException
16         {
17                 public InvalidConstraintException ()
18                         : base (Locale.GetText ("Cannot access or create this relation"))
19                 {
20                 }
21
22                 public InvalidConstraintException (string message)
23                         : base (message)
24                 {
25                 }
26
27                 protected InvalidConstraintException (SerializationInfo info, StreamingContext context)
28                         : base (info, context)
29                 {
30                 }
31         }
32 }