Table of Contents

Class PermissionDeniedException

Namespace
ArcanaDevelopment.adTempus.Shared
Assembly
ArcanaDevelopment.adTempus.Shared.dll

Exception thrown when the caller does not have permission to perform an action.

[Serializable]
public class PermissionDeniedException : MessageException
Inheritance
object
Exception
PermissionDeniedException

Constructors

PermissionDeniedException(Message)

public PermissionDeniedException(Message message)

Parameters

NameTypeDescription
message Message

Properties

ActionRequested

The name of the permission that was denied

public string ActionRequested { get; }

Property Value

string

Remarks

This value is not always set and may return an empty string.

TargetObject

The name of the object that the error relates to

public string TargetObject { get; }

Property Value

string

Remarks

This value is not always set and may return an empty string.

Methods

Create(MessageCollection)

public static PermissionDeniedException Create(MessageCollection messages)

Parameters

NameTypeDescription
messages MessageCollection

Returns

PermissionDeniedException

Create(SecurityPermission, object)

public static PermissionDeniedException Create(SecurityPermission actionRequested, object targetObject = null)

Parameters

NameTypeDescription
actionRequested SecurityPermission
targetObject object

Returns

PermissionDeniedException

Inherited Members