Class UnhandledError

An unhandled error thrown inside the controller (i.e. !(error instanceof HandledError)) .

Hierarchy

  • Error
    • UnhandledError

Constructors

  • Parameters

    • Optionalmessage: string

    Returns UnhandledError

  • Parameters

    • Optionalmessage: string
    • Optionaloptions: ErrorOptions

    Returns UnhandledError

Properties

cause?: unknown
internalMessage: string

The original error message before it was replaced by a public-facing message.

message: string
name: string
stack?: string
unhandled: string

The context where the unhandled error was intercepted.

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