Files
Dec2017-Script-Dump/mscorlib/System/Security/Policy/PolicyException.cs
T
2026-06-04 11:42:34 +02:00

47 lines
2.3 KiB
C#

using System;
using System.Runtime.InteropServices;
using System.Runtime.Serialization;
namespace System.Security.Policy
{
/// <summary>The exception that is thrown when policy forbids code to run.</summary>
// Token: 0x02000598 RID: 1432
[ComVisible(true)]
[Serializable]
public class PolicyException : SystemException, _Exception
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Policy.PolicyException" /> class with default properties.</summary>
// Token: 0x0600344B RID: 13387 RVA: 0x000B3CE8 File Offset: 0x000B1EE8
public PolicyException()
: base(Locale.GetText("Cannot run because of policy."))
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Policy.PolicyException" /> class with a specified error message.</summary>
/// <param name="message">The error message that explains the reason for the exception. </param>
// Token: 0x0600344C RID: 13388 RVA: 0x000B3CFC File Offset: 0x000B1EFC
public PolicyException(string message)
: base(message)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Policy.PolicyException" /> class with serialized data.</summary>
/// <param name="info">The object that holds the serialized object data. </param>
/// <param name="context">The contextual information about the source or destination. </param>
// Token: 0x0600344D RID: 13389 RVA: 0x000B3D08 File Offset: 0x000B1F08
protected PolicyException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Policy.PolicyException" /> class with a specified error message and a reference to the inner exception that is the cause of this exception.</summary>
/// <param name="message">The error message that explains the reason for the exception. </param>
/// <param name="exception">The exception that is the cause of the current exception. If the <paramref name="exception" /> parameter is not null, the current exception is raised in a catch block that handles the inner exception. </param>
// Token: 0x0600344E RID: 13390 RVA: 0x000B3D14 File Offset: 0x000B1F14
public PolicyException(string message, Exception exception)
: base(message, exception)
{
}
}
}