2002-04-26 Duncan Mak <duncan@ximian.com>
[mono.git] / mcs / class / corlib / System / MissingFieldException.cs
1 //      
2 // System.MissingFieldException.cs
3 //
4 // Author:
5 //      Duncan Mak (duncan@ximian.com)
6 //
7 // 2002 (C) Ximian, Inc. http://www.ximian.com
8 //
9
10 using System;
11 using System.Globalization;
12 using System.Runtime.Serialization;
13
14 namespace System
15 {
16         [Serializable]
17         public class MissingFieldException : MissingMemberException
18         {
19                 // Constructors
20                 public MissingFieldException ()
21                         : base (Locale.GetText ("Field does not exist."))
22                 {
23                 }
24                 
25                 public MissingFieldException (string message)
26                         : base (message)
27                 {
28                 }
29                 
30                 protected MissingFieldException (SerializationInfo info,
31                                                  StreamingContext context)
32                         : base (info, context)
33                 {
34                 }
35                 
36                 public MissingFieldException (string message, Exception innerException)
37                         : base (message, innerException)
38                 {
39                 }
40                 
41                 public MissingFieldException (string className, string fieldName)
42                         : base (className, fieldName)
43                 {
44                 }
45
46                 // Properties
47
48                 public override string Message {
49                         get { return Locale.GetText (msg); }
50                 }
51         }
52 }