2002-01-14 Miguel de Icaza <miguel@ximian.com>
[mono.git] / mcs / class / corlib / System / TypeInitializationException.cs
1 //
2 // System.TypeInitializationException.cs
3 //
4 // Author:
5 //   Joe Shaw (joe@ximian.com)
6 //
7 // (C) 2001 Ximian, Inc.  http://www.ximian.com
8 //
9
10 using System.Globalization;
11 namespace System {
12
13         public class TypeInitializationException : SystemException {
14                 string type_name;
15
16                 // Constructors
17                 public TypeInitializationException (string type_name, Exception inner)
18                         : base (Locale.GetText ("An exception was thrown by the type initializer for ") + type_name, inner)
19                 {
20                         this.type_name = type_name;
21                 }
22
23                 // Properties
24                 public string TypeName {
25                         get {
26                                 return type_name;
27                         }
28                 }
29         }
30
31 }