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