UnauthorizedException
global class UnauthorizedException extends Exception
Description
The exception thrown when unauthorized access is detected.
Properties
AccessRequirementglobal enum AccessRequirement
Access requirements:
Unspecified: Not specified.DocuSignLogin: Must be assigned theDocuSign Loginpermission set.DocuSignSender: Must be assigned theDocuSign Senderpermission set.DocuSignUser: Must be assigned theDocuSign Userpermission set.DocuSignAdministrator: Must be assigned theDocuSign Administratorpermission set.DocuSignGenerator: Must be assigned theDocuSign Generatorpermission set.DocuSignNegotiator: Must be assigned theDocuSign Negotiatorpermission set.ClmAdministrator: Must be assigned theCLM Administratorpermission set.ClmUser: Must be assigned theCLM Userpermission set.ClmCommunityUser: Must be assigned theCLM Community Userpermission set.ClmViewer: Must be assigned theCLM Viewerpermission set.SalesforceAdministrator: Must be a Salesforce administrator.EnvelopeOwner: Must be the envelope owner.ConfigureAccount: Docusign account is not configured in Salesforce.OriginalUser: Cannot impersonate user.IntegrationUser: Must be the integration user.AccountMember: Not a member of the Docusign account.CurrentSalesforceUser: Must be the current Salesforce user.
requirementglobal AccessRequirement requirement
The access requirement.
userIdglobal Id userId
The ID of the unauthorized user.