Haveno error with message and code.

Hierarchy

  • Error
    • HavenoError

Constructors

  • Create the error with a message and code.

    Parameters

    • msg: string

      the error message

    • Optional code: number

    Returns HavenoError

Properties

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

Type declaration

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc