2004-03-16 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
[mono.git] / mcs / class / corlib / System / DllNotFoundException.cs
1 //
2 // System.DllNotFoundException.cs
3 //
4 // Authors:
5 //   Duncan Mak (duncan@ximian.com)
6 //   Andreas Nahr (ClassDevelopment@A-SoftTech.com)
7 //
8 // 2002 (C) Ximian, Inc. http://www.ximian.com
9 //
10
11 using System.Runtime.Serialization;
12
13 namespace System
14 {
15         [Serializable]
16         public class DllNotFoundException : TypeLoadException
17         {
18                 const int Result = unchecked ((int)0x80131524);
19
20                 // Constructors
21                 public DllNotFoundException ()
22                         : base (Locale.GetText ("DLL not found."))
23                 {
24                         HResult = Result;
25                 }
26
27                 public DllNotFoundException (string message)
28                         : base (message)
29                 {
30                         HResult = Result;
31                 }
32
33                 protected DllNotFoundException (SerializationInfo info, StreamingContext context)
34                         : base (info, context)
35                 {
36                 }
37
38                 public DllNotFoundException (string message, Exception innerException)
39                         :base (message, innerException)
40                 {
41                         HResult = Result;
42                 }
43         }
44 }