e64d90c3f956e26e26175ed63d1e0e3db6167689
[mono.git] / mcs / class / System / System.IO / InvalidDataException.cs
1 //
2 // System.InvalidDataException.cs
3 //
4 // Authors:
5 //   Christopher James Lahey <clahey@ximian.com>
6 //   Andreas Nahr (ClassDevelopment@A-SoftTech.com)
7 //
8 // (C) 2004 Novell, Inc.  http://www.novell.com
9 //
10
11 #if NET_2_0
12
13 using System.Globalization;
14 using System.Runtime.Serialization;
15
16 namespace System.IO
17 {
18         [Serializable]
19         public class InvalidDataException : SystemException
20         {
21                 const int Result = unchecked ((int)0x80131503);
22
23                 // Constructors
24                 public InvalidDataException ()
25                         : base (Locale.GetText ("Invalid data format."))
26                 {
27                         HResult = Result;
28                 }
29
30                 public InvalidDataException (string message)
31                         : base (message)
32                 {
33                         HResult = Result;
34                 }
35
36                 public InvalidDataException (string message, Exception innerException)
37                         : base (message, innerException)
38                 {
39                         HResult = Result;
40                 }
41
42                 protected InvalidDataException (SerializationInfo info, StreamingContext context)
43                         : base (info, context)
44                 {
45                 }
46         }
47 }
48
49 #endif