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
-
objectExceptionPermissionDeniedException
Constructors
PermissionDeniedException(Message)
public PermissionDeniedException(Message message)
Parameters
| Name | Type | Description |
|---|---|---|
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
| Name | Type | Description |
|---|---|---|
messages |
MessageCollection |
Returns
Create(SecurityPermission, object)
public static PermissionDeniedException Create(SecurityPermission actionRequested, object targetObject = null)
Parameters
| Name | Type | Description |
|---|---|---|
actionRequested |
SecurityPermission | |
targetObject |
object |