mscorlib(4.0.0.0) API with additions
PolicyException.cs
3 
5 {
8  [ComVisible(true)]
10  {
12  public PolicyException()
13  : base(Environment.GetResourceString("Policy_Default"))
14  {
15  base.HResult = -2146233322;
16  }
17 
20  public PolicyException(string message)
21  : base(message)
22  {
23  base.HResult = -2146233322;
24  }
25 
29  public PolicyException(string message, Exception exception)
30  : base(message, exception)
31  {
32  base.HResult = -2146233322;
33  }
34 
39  : base(info, context)
40  {
41  }
42 
43  internal PolicyException(string message, int hresult)
44  : base(message)
45  {
46  base.HResult = hresult;
47  }
48 
49  internal PolicyException(string message, int hresult, Exception exception)
50  : base(message, exception)
51  {
52  base.HResult = hresult;
53  }
54  }
55 }
Serves as the base class for system exceptions namespace.
Definition: __Canon.cs:3
Describes the source and destination of a given serialized stream, and provides an additional caller-...
PolicyException(string message)
Initializes a new instance of the T:System.Security.Policy.PolicyException class with a specified err...
Provides information about, and means to manipulate, the current environment and platform....
Definition: Environment.cs:21
PolicyException()
Initializes a new instance of the T:System.Security.Policy.PolicyException class with default propert...
Stores all the data needed to serialize or deserialize an object. This class cannot be inherited.
Represents errors that occur during application execution.To browse the .NET Framework source code fo...
Definition: Exception.cs:22
Specifies that the class can be serialized.
PolicyException(string message, Exception exception)
Initializes a new instance of the T:System.Security.Policy.PolicyException class with a specified err...
The exception that is thrown when policy forbids code to run.
PolicyException(SerializationInfo info, StreamingContext context)
Initializes a new instance of the T:System.Security.Policy.PolicyException class with serialized data...