2002-09-13 Nick Drochak <ndrochak@gol.com>
[mono.git] / mcs / class / corlib / System / ApplicationException.cs
index 9bb597644aa9620aa26ce7826022f007f2649763..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)
+               {
+               }
        }
 }