Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Error
    • WidlError

Index

Constructors

constructor

  • new WidlError(message: string, nodes: undefined | Node | Node[], source: undefined | Source, positions: undefined | number[], path: undefined | (string | number)[]): WidlError
  • Parameters

    • message: string
    • nodes: undefined | Node | Node[]
    • source: undefined | Source
    • positions: undefined | number[]
    • path: undefined | (string | number)[]

    Returns WidlError

Properties

message

message: string

name

name: string

nodes

nodes: undefined | Node | Node[]

path

path: undefined | (string | number)[]

positions

positions: undefined | number[]

Optional prepareStackTrace

prepareStackTrace: (err: Error, stackTraces: CallSite[]) => any

Optional override for formatting stack traces

see

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

Type declaration

    • (err: Error, stackTraces: CallSite[]): any
    • Parameters

      • err: Error
      • stackTraces: CallSite[]

      Returns any

source

source: undefined | Source

Optional stack

stack: string

stackTraceLimit

stackTraceLimit: number

Methods

captureStackTrace

  • captureStackTrace(targetObject: object, constructorOpt?: Function): void
  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Legend

  • Variable
  • Function
  • Function with type parameter
  • Type alias
  • Type alias with type parameter
  • Class
  • Constructor
  • Property
  • Enumeration
  • Interface

Generated using TypeDoc