2003-06-29 Sebastien Pouliot <spouliot@videotron.ca>
[mono.git] / mcs / class / corlib / System.Security.Policy / PolicyException.cs
1 //      
2 // System.PolicyException.cs
3 //
4 // Author:
5 //      Duncan Mak (duncan@ximian.com)
6 //
7 // 2002 (C) Ximian, Inc. http://www.ximian.com
8 //
9
10 using System;
11 using System.Globalization;
12 using System.Runtime.Serialization;
13
14 namespace System.Security.Policy
15 {
16            [Serializable]
17            public class PolicyException : SystemException
18            {
19                          // Constructors
20                          public PolicyException ()
21                                     : base (Locale.GetText ("Cannot run because of policy."))
22                          {
23                          }
24
25                          public PolicyException (string message)
26                                     : base (message)
27                          {
28                          }
29                          
30                          protected PolicyException (SerializationInfo info,
31                                     StreamingContext context)
32                                     : base (info, context)
33                          {
34                          }
35
36                          public PolicyException (string message, Exception innerException)
37                                     :base (message, innerException)
38                          {
39                          }
40                                     
41            }
42 }