* Array.cs (CopyTo): use GetLength() instead of GetUpperBound()
[mono.git] / mcs / class / corlib / System / UnauthorizedAccessException.cs
index b3b6f64c3f22101ea967fbc5bb0b3c03be02717d..9ac213779d4ec77d80049959b2de04f50796c183 100755 (executable)
@@ -3,16 +3,20 @@
 //
 // Author:
 //   Paolo Molaro (lupus@ximian.com)
+//   Duncan Mak  (duncan@ximian.com)
 //
 // (C) 2001 Ximian, Inc.  http://www.ximian.com
 //
 
+using System.Globalization;
+using System.Runtime.Serialization;
+
 namespace System {
 
        public class UnauthorizedAccessException : SystemException {
                // Constructors
                public UnauthorizedAccessException ()
-                       : base ("Access to the requested resource is not authorized")
+                       : base (Locale.GetText ("Access to the requested resource is not authorized"))
                {
                }
 
@@ -25,5 +29,10 @@ namespace System {
                        : base (message, inner)
                {
                }
+
+               protected UnauthorizedAccessException (SerializationInfo info, StreamingContext context)
+                       : base (info, context)
+               {
+               }
        }
 }