AccessPermissionException(Int32, Int32, RightFlags)
Initialises a new instance of the AceessPermissionException class with an error message.
The error message is predefined and contains the parameters given in the constructor. The error message reads: "User userIdentity does not have the required permission requiredPermission for object objectIdentity".
Parameter
- userIdentity
Type: System.Int32
The parameter indicates the Id of the onion.net user for whom this exception applies. The existence of the Id is not checked.
- objectIdentity
Type: System.Int32
The Id of the data object it was attempted to access. The existence of the Id is not checked.
- requiredPermission
Type: RightFlags
Indicates the permissions needed by the indicated user to successfully execute the attempted procedure.