Skip to content

Class: VueFlowError<T, Args> ​

Type parameters ​

NameType
Textends ErrorCode = ErrorCode
Argsextends ErrorArgs<T> = ErrorArgs<T>

Hierarchy ​

  • Error

    ↳ VueFlowError

Table of contents ​

Constructors ​

Properties ​

Methods ​

Constructors ​

constructor ​

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

Type parameters ​

NameType
Textends ErrorCode = ErrorCode
Argsextends [] | [id?: string] | [id: null | string] | [id: string, parentId: string] | [type: string] | [id: string] | [id: string] | [id: string, source: string] | [id: string, target: string] | [type: string] | [id: string, source: string, target: string] | [id: string, source: string, target: string] | [id: string] | [id: string] = ErrorArgs<T>

Parameters ​

NameType
codeT
...argsArgs

Returns ​

VueFlowError<T, Args>

Overrides ​

Error.constructor

Properties ​

args ​

• args: Args


cause ​

• Optional cause: unknown

Inherited from ​

Error.cause


code ​

• code: T


message ​

• message: string

Inherited from ​

Error.message


name ​

• name: string = 'VueFlowError'

Overrides ​

Error.name


stack ​

• Optional stack: string

Inherited from ​

Error.stack


prepareStackTrace ​

â–ª Static Optional 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, 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 ​

â–¸ 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.