Skip to content

Class: VueFlowError<T> ​

Type parameters ​

NameType
Textends ErrorCode = ErrorCode

Hierarchy ​

  • Error

    ↳ VueFlowError

Table of contents ​

Constructors ​

Properties ​

Methods ​

Constructors ​

constructor ​

• new VueFlowError<T>(code, ...args)

Type parameters ​

NameType
Textends ErrorCode = ErrorCode

Parameters ​

NameType
codeT
...args{ EDGE_INVALID: (id: string) => string ; EDGE_NOT_FOUND: (id: string) => string ; EDGE_ORPHANED: (id: string) => string ; EDGE_SOURCE_MISSING: (id: string, source: string) => string ; EDGE_SOURCE_TARGET_MISSING: (id: string, source: string, target: string) => string ; EDGE_SOURCE_TARGET_SAME: (id: string, source: string, target: string) => string ; EDGE_TARGET_MISSING: (id: string, target: string) => string ; EDGE_TYPE_MISSING: (type: string) => string ; MISSING_VIEWPORT_DIMENSIONS: () => string ; NODE_EXTENT_INVALID: (id: string) => string ; NODE_INVALID: (id?: string) => string ; NODE_MISSING_PARENT: (id: string, parentId: string) => string ; NODE_NOT_FOUND: (id: string) => string ; NODE_TYPE_MISSING: (type: string) => string }[T] extends (...args: any[]) => string ? Parameters<any[any]> : never

Overrides ​

Error.constructor

Properties ​

cause ​

• Optional cause: unknown

Inherited from ​

Error.cause


code ​

• code: T


message ​

• message: string

Inherited from ​

Error.message


name ​

• name: string

Inherited from ​

Error.name


stack ​

• Optional stack: string

Inherited from ​

Error.stack


prepareStackTrace ​

â–ª Static Optional prepareStackTrace: (err: Error, stackTraces: CallSite[]) => any

Type declaration ​

â–¸ (err, stackTraces): any

Optional override for formatting stack traces

Parameters ​
NameType
errError
stackTracesCallSite[]
Returns ​

any

See

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

Inherited from ​

Error.prepareStackTrace


stackTraceLimit ​

â–ª Static stackTraceLimit: number

Inherited from ​

Error.stackTraceLimit

Methods ​

captureStackTrace ​

â–¸ Static captureStackTrace(targetObject, constructorOpt?): void

Create .stack property on a target object

Parameters ​

NameType
targetObjectobject
constructorOpt?Function

Returns ​

void

Inherited from ​

Error.captureStackTrace

Released under the MIT License.