2 // System.Reflection.ReflectionTypeLoadException
4 // Sean MacIsaac (macisaac@ximian.com)
5 // Dunan Mak (duncan@ximian.com)
7 // (C) 2001 Ximian, Inc.
9 using System.Globalization;
10 using System.Runtime.Serialization;
12 namespace System.Reflection
15 public sealed class ReflectionTypeLoadException : SystemException
18 private Exception[] loaderExceptions;
22 public ReflectionTypeLoadException (Type[] classes, Exception[] exceptions)
23 : base (Locale.GetText ("The classes in the module cannot be loaded."))
25 loaderExceptions = exceptions;
29 public ReflectionTypeLoadException (Type[] classes, Exception[] exceptions, string message)
32 loaderExceptions = exceptions;
42 public Exception[] LoaderExceptions
44 get { return loaderExceptions; }
50 // This one is a bit tough because need to serialize two arrays.
51 // The serialization output comes out as
52 // <Types href="#ref-4" />
53 // <Exceptions href="#ref-5" />
54 // and then goes on and appends new SOAP-ENCs, etc...
56 public override void GetObjectData (SerializationInfo info, StreamingContext context)
58 base.GetObjectData (info, context);