Merge pull request #313 from viniciusjarina/green_build
[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 // Copyright (C) 2004, 2006 Novell, Inc (http://www.novell.com)
9 //
10
11 using System.Globalization;
12 using System.Runtime.Serialization;
13
14 namespace System.IO
15 {
16         [Serializable]
17         public sealed class InvalidDataException : SystemException
18         {
19                 const int Result = unchecked ((int)0x80131503);
20
21                 // Constructors
22                 public InvalidDataException ()
23                         : base (Locale.GetText ("Invalid data format."))
24                 {
25                         HResult = Result;
26                 }
27
28                 public InvalidDataException (string message)
29                         : base (message)
30                 {
31                         HResult = Result;
32                 }
33
34                 public InvalidDataException (string message, Exception innerException)
35                         : base (message, innerException)
36                 {
37                         HResult = Result;
38                 }
39
40                 private InvalidDataException (SerializationInfo info, StreamingContext context)
41                         : base (info, context)
42                 {
43                 }
44         }
45 }
46