Class InvalidSubjectError

Represents an error that is thrown when an invalid subject is encountered. This class extends the built-in Error object.

Hierarchy

  • Error
    • InvalidSubjectError

Constructors

  • Parameters

    • subject: string
    • Optionaloptions: ErrorOptions

    Returns InvalidSubjectError

Properties

cause?: unknown
message: string
name: 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