[corlib] Parse datetime string using culture calendar. Fixes #18052
[mono.git] / mcs / class / corlib / System.Security.Policy / PolicyException.cs
index d2f17478d026b360ca9b3c14e79d48c5f63de5f4..022774c804980764437a752403c4ee03cfc61867 100644 (file)
@@ -1,11 +1,11 @@
 //     
-// System.PolicyException.cs
+// System.Security.Policy.PolicyException.cs
 //
 // Author:
 //     Duncan Mak (duncan@ximian.com)
 //
 // 2002 (C) Ximian, Inc. http://www.ximian.com
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-using System;
 using System.Globalization;
 using System.Runtime.InteropServices;
 using System.Runtime.Serialization;
 
 namespace System.Security.Policy {
 
-          [Serializable]
-#if NET_2_0
-          public class PolicyException : SystemException, _Exception {
-#else
-          public class PolicyException : SystemException {
-#endif
-                        // Constructors
-                        public PolicyException ()
-                                   : base (Locale.GetText ("Cannot run because of policy."))
-                        {
-                        }
+       [Serializable]
+       [ComVisible (true)]
+       public class PolicyException : SystemException, _Exception {
+               // Constructors
+               public PolicyException ()
+                       : base (Locale.GetText ("Cannot run because of policy."))
+               {
+               }
 
-                        public PolicyException (string message)
-                                   : base (message)
-                        {
-                        }
+               public PolicyException (string message)
+                       : base (message)
+               {
+               }
                         
-                        protected PolicyException (SerializationInfo info,
-                                   StreamingContext context)
-                                   : base (info, context)
-                        {
-                        }
+               protected PolicyException (SerializationInfo info, StreamingContext context)
+                       : base (info, context)
+               {
+               }
 
-                        public PolicyException (string message, Exception innerException)
-                                   :base (message, innerException)
-                        {
-                        }
-                                   
-          }
+               public PolicyException (string message, Exception exception)
+                       :base (message, exception)
+               {
+               }
+       }
 }