Error that force logs the error message before throwing. Useful for debugging in some situations.

Hierarchy

  • Error
    • default

Constructors

Properties

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

Optional override for formatting stack traces

stack?: string
stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void