Welcome to mirror list, hosted at ThFree Co, Russian Federation.

TypeInitializationException.cs « System « corlib « class « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: cae537d64b524fc355a976a8316ba8da9ce11dcd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//
// System.TypeInitializationException.cs
//
// Author:
//   Joe Shaw (joe@ximian.com)
//   Duncan Mak (duncan@ximian.com)
//
// (C) 2001 Ximian, Inc.  http://www.ximian.com
//
using System.Globalization;
using System.Runtime.Serialization;
namespace System {

	[Serializable]
	public sealed class TypeInitializationException : SystemException {
		string type_name;

		// Constructors
		public TypeInitializationException (string type_name, Exception inner)
			: base (Locale.GetText ("An exception was thrown by the type initializer for ") + type_name, inner)
		{
			this.type_name = type_name;
		}

		// Properties
		public string TypeName {
			get {
				return type_name;
			}
		}

		// Methods
		public override void GetObjectData (SerializationInfo info, StreamingContext context)
		{
			base.GetObjectData (info, context);
			info.AddValue ("TypeName", type_name);
		}
	}

}