Class PermissionViolationError

Class representing a Permission Violation Error. It provides information about the operation (either "publish" or "subscription") and the subject used for the operation and the optional queue (if a subscription).

This error is terminal for a subscription.

Hierarchy

  • Error
    • PermissionViolationError

Constructors

  • Parameters

    • message: string
    • operation: "publish" | "subscription"
    • subject: string
    • Optionalqueue: string
    • Optionaloptions: ErrorOptions

    Returns PermissionViolationError

Properties

cause?: unknown
message: string
name: string
operation: "publish" | "subscription"
queue?: string
stack?: string
subject: 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