blob: 7680b4c37b5e84feeee3f20b88739ae2b8b20ded (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
//
// System.Reflection.ReflectionTypeLoadException
//
// Sean MacIsaac (macisaac@ximian.com)
// Dunan Mak (duncan@ximian.com)
//
// (C) 2001 Ximian, Inc.
//
using System.Globalization;
using System.Runtime.Serialization;
namespace System.Reflection
{
[Serializable]
public sealed class ReflectionTypeLoadException : SystemException
{
// Fields
private Exception[] loaderExceptions;
private Type[] types;
// Constructors
public ReflectionTypeLoadException (Type[] classes, Exception[] exceptions)
: base (Locale.GetText ("The classes in the module cannot be loaded."))
{
loaderExceptions = exceptions;
types = classes;
}
public ReflectionTypeLoadException (Type[] classes, Exception[] exceptions, string message)
: base (message)
{
loaderExceptions = exceptions;
types = classes;
}
// Properties
public Type[] Types
{
get { return types; }
}
public Exception[] LoaderExceptions
{
get { return loaderExceptions; }
}
// Method
[MonoTODO]
//
// This one is a bit tough because need to serialize two arrays.
// The serialization output comes out as
// <Types href="#ref-4" />
// <Exceptions href="#ref-5" />
// and then goes on and appends new SOAP-ENCs, etc...
//
public override void GetObjectData (SerializationInfo info, StreamingContext context)
{
base.GetObjectData (info, context);
}
}
}
|