Member Junction
    Preparing search index...

    Thrown by IPermissionProvider consumers (typically via PermissionEngine.AuthorizeOrThrow) when a user lacks a required permission.

    Actions, AI Agents, and other programmatic callers should catch this specific error so they can differentiate "denied" from other runtime failures and surface a clear "Access denied: " message.

    Hierarchy

    • Error
      • PermissionDeniedError
    Index

    Constructors

    Properties

    cause?: unknown
    DomainName: string
    message: string
    name: string
    Reason: string
    ResourceID: string
    ResourceType: string
    stack?: string
    prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any

    Optional override for formatting stack traces

    stackTraceLimit: number

    Methods

    • Create .stack property on a target object

      Parameters

      • targetObject: object
      • OptionalconstructorOpt: Function

      Returns void