2004-03-09 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
[mono.git] / mcs / class / corlib / System / FormatException.cs
1 //
2 // System.FormatException.cs
3 //
4 // Authors:
5 //   Joe Shaw (joe@ximian.com)
6 //   Andreas Nahr (ClassDevelopment@A-SoftTech.com)
7 //
8 // (C) 2001 Ximian, Inc.  http://www.ximian.com
9 //
10
11 using System.Runtime.Serialization;
12
13 namespace System
14 {
15         [Serializable]
16         public class FormatException : SystemException
17         {
18                 const int Result = unchecked ((int)0x80131537);
19
20                 // Constructors
21                 public FormatException ()
22                         : base (Locale.GetText ("Invalid format."))
23                 {
24                         HResult = Result;
25                 }
26
27                 public FormatException (string message)
28                         : base (message)
29                 {
30                         HResult = Result;
31                 }
32
33                 public FormatException (string message, Exception inner)
34                         : base (message, inner)
35                 {
36                         HResult = Result;
37                 }
38
39                 protected FormatException (SerializationInfo info, StreamingContext context)
40                         : base (info, context)
41                 {
42                 }
43         }
44 }