Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RuntimeError

RuntimeError will be thrown by VexFlow classes in case of error.

Hierarchy

  • Error
    • RuntimeError

Index

Constructors

constructor

  • new RuntimeError(code: string, message?: string): RuntimeError
  • Parameters

    • code: string
    • message: string = ''

    Returns RuntimeError

Properties

code

code: string

message

message: string

name

name: string

Optional stack

stack?: string

Static Optional prepareStackTrace

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

Type declaration

Static stackTraceLimit

stackTraceLimit: number

Methods

Static captureStackTrace

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

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void