PolicyViolationException Class |
Namespace: SanteDB.Core.Exceptions
The PolicyViolationException type exposes the following members.
Name | Description | |
---|---|---|
PolicyViolationException(IPrincipal, PolicyDecision) |
Initializes a new instance of the PolicyViolationException class.
| |
PolicyViolationException(IPrincipal, String, PolicyGrantType) |
Initializes a new instance of the PolicyViolationException class.
|
Name | Description | |
---|---|---|
Data | Gets a collection of key/value pairs that provide additional user-defined information about the exception. (Inherited from Exception.) | |
Demanded | Gets or sets the demanded security permission, permission set, or permission set collection that failed. (Inherited from SecurityException.) | |
DenySetInstance | Gets or sets the denied security permission, permission set, or permission set collection that caused a demand to fail. (Inherited from SecurityException.) | |
Detail |
The details of the violation
| |
FailedAssemblyInfo | Gets or sets information about the failed assembly. (Inherited from SecurityException.) | |
GrantedSet | Gets or sets the granted permission set of the assembly that caused the SecurityException. (Inherited from SecurityException.) | |
HelpLink | Gets or sets a link to the help file associated with this exception. (Inherited from Exception.) | |
HResult | Gets or sets HRESULT, a coded numerical value that is assigned to a specific exception. (Inherited from Exception.) | |
InnerException | Gets the Exception instance that caused the current exception. (Inherited from Exception.) | |
Message |
Gets a message that describes the current exception.
(Overrides ExceptionMessage.) | |
Method | Gets or sets the information about the method associated with the exception. (Inherited from SecurityException.) | |
PermissionState | Gets or sets the state of the permission that threw the exception. (Inherited from SecurityException.) | |
PermissionType | Gets or sets the type of the permission that failed. (Inherited from SecurityException.) | |
PermitOnlySetInstance | Gets or sets the permission, permission set, or permission set collection that is part of the permit-only stack frame that caused a security check to fail. (Inherited from SecurityException.) | |
Policy |
Gets the policy that was violated
| |
PolicyDecision |
Gets the policy decision.
| |
PolicyId |
Gets the policy identifier.
| |
Principal |
Gets the principal that violated the policy
| |
RefusedSet | Gets or sets the refused permission set of the assembly that caused the SecurityException. (Inherited from SecurityException.) | |
Source | Gets or sets the name of the application or the object that causes the error. (Inherited from Exception.) | |
StackTrace | Gets a string representation of the immediate frames on the call stack. (Inherited from Exception.) | |
TargetSite | Gets the method that throws the current exception. (Inherited from Exception.) | |
Url | Gets or sets the URL of the assembly that caused the exception. (Inherited from SecurityException.) |
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetBaseException | When overridden in a derived class, returns the Exception that is the root cause of one or more subsequent exceptions. (Inherited from Exception.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetObjectData | Sets the SerializationInfo with information about the SecurityException. (Inherited from SecurityException.) | |
GetType | Gets the runtime type of the current instance. (Inherited from Exception.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a representation of the current SecurityException. (Inherited from SecurityException.) |
Name | Description | |
---|---|---|
SerializeObjectState | Occurs when an exception is serialized to create an exception state object that contains serialized data about the exception. (Inherited from Exception.) |
Name | Description | |
---|---|---|
ConvertTReturn |
The purpose of this method is to convert object me to TReturn. Why?
Because if you have an instance of Act that actually needs to be a SubstanceAdministration we can't just cast
so we have to copy.
(Defined by ExtensionMethods.) | |
GetInstanceOfTDomain |
Gets an instance of TDomain from me
(Defined by ModelExtensions.) |