2002-08-21 Miguel de Icaza <miguel@ximian.com>
[mono.git] / mcs / class / corlib / System / ApplicationException.cs
index 0e19c3eca43fc2c3d1f2f11342896060b560053b..9420c119430dda20e68f86fee0cb6d141f0fd9c5 100644 (file)
@@ -1,18 +1,26 @@
 //
 // System.ApplicationException.cs
 //
-// Author:
+// Authors:
 //   Joe Shaw (joe@ximian.com)
+//   Miguel de Icaza (miguel@ximian.com) 
 //
 // (C) 2001 Ximian, Inc.  http://www.ximian.com
 //
 
-namespace System {
+using System.Reflection;
+using System.Globalization;
+using System.Runtime.Serialization;
 
-       public class ApplicationException : Exception {
+namespace System
+{
+
+       [Serializable]
+       public class ApplicationException : Exception
+       {
                // Constructors
                public ApplicationException ()
-                       : base ("An application exception has occurred.");
+                       : base (Locale.GetText ("An application exception has occurred."))
                {
                }
 
@@ -25,5 +33,10 @@ namespace System {
                        : base (message, inner)
                {
                }
+
+               protected ApplicationException (SerializationInfo info, StreamingContext context)
+                       : base (info, context)
+               {
+               }
        }
-}
\ No newline at end of file
+}