2001-07-06 Joe Shaw <joe@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 namespace System {
11
12         public class TypeInitializationException : SystemException {
13                 string type_name;
14
15                 // Constructors
16                 public TypeInitializationException (string type_name, Exception inner)
17                         : base ("An exception was thrown by the type initializer for " + type_name, inner)
18                 {
19                         this.type_name = type_name;
20                 }
21
22                 // Properties
23                 public string TypeName {
24                         get {
25                                 return type_name;
26                         }
27                 }
28         }
29
30 }