Added a missing line to enable Locale.GetText.
[mono.git] / mcs / class / System.Data / System.Data / DataException.cs
1 //
2 // System.Data.DataException.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 DataException : SystemException
16         {
17                 public DataException ()
18                         : base (Locale.GetText ("A Data exception has occurred"))
19                 {
20                 }
21
22                 public DataException (string message)
23                         : base (message)
24                 {
25                 }
26
27                 protected DataException (SerializationInfo info, StreamingContext context)
28                         : base (info, context)
29                 {
30                 }
31
32                 public DataException (string message, Exception innerException)
33                         : base (message, innerException)
34                 {
35                 }
36         }
37 }