Add missing file
authorMiguel de Icaza <miguel@gnome.org>
Thu, 17 Jan 2002 19:55:07 +0000 (19:55 -0000)
committerMiguel de Icaza <miguel@gnome.org>
Thu, 17 Jan 2002 19:55:07 +0000 (19:55 -0000)
svn path=/trunk/mcs/; revision=2026

mcs/class/corlib/System.Runtime.InteropServices/ExternalException.cs [new file with mode: 0755]

diff --git a/mcs/class/corlib/System.Runtime.InteropServices/ExternalException.cs b/mcs/class/corlib/System.Runtime.InteropServices/ExternalException.cs
new file mode 100755 (executable)
index 0000000..c4f0b0d
--- /dev/null
@@ -0,0 +1,49 @@
+//
+// System.Runtime.InteropServices.ExternalException.cs
+//
+// Author:
+//   Miguel De Icaza (miguel@ximian.com)
+//
+// (C) 2001 Ximian, Inc.  http://www.ximian.com
+//
+
+using System.Runtime.Serialization;
+using System.Globalization;
+
+namespace System.Runtime.InteropServices {
+
+       public class ExternalException : SystemException {
+               int error_code;
+               
+               // Constructors
+               public ExternalException ()
+                       : base (Locale.GetText ("External exception"))
+               {
+               }
+
+               public ExternalException (string message)
+                       : base (message)
+               {
+               }
+
+               protected ExternalException(SerializationInfo info, StreamingContext context)
+                       : base (info, context) {
+               }
+               
+               public ExternalException (string message, Exception inner)
+                       : base (message, inner)
+               {
+               }
+
+               public ExternalException (string message, int errorCode)
+               {
+                       error_code = errorCode;
+               }
+
+               public virtual int ErrorCode {
+                       get {
+                               return error_code;
+                       }
+               }
+       }
+}