Class UnexpectedError

Catch all error class to wrap unknown errors. An error of this class popping up is considered a bug

Hierarchy

  • Error
    • UnexpectedError

Constructors

Properties

cause?: unknown
message: string
name: string
stack?: string
prepareStackTrace?: ((err, stackTraces) => any)

Type declaration

stackTraceLimit: number

Methods

  • Use this method to generate a url for an issue containing relevant information for this error.

    Returns string

    clickable url to create an issue for this error

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc