Class: VueFlowError<T> ​
Type parameters ​
Name | Type |
---|---|
T | extends ErrorCode = ErrorCode |
Hierarchy ​
Error
↳
VueFlowError
Table of contents ​
Constructors ​
Properties ​
Methods ​
Constructors ​
constructor ​
• new VueFlowError<T
>(code
, ...args
)
Type parameters ​
Name | Type |
---|---|
T | extends ErrorCode = ErrorCode |
Parameters ​
Name | Type |
---|---|
code | T |
...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 ​
Name | Type |
---|---|
err | Error |
stackTraces | CallSite [] |
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 ​
Name | Type |
---|---|
targetObject | object |
constructorOpt? | Function |
Returns ​
void
Inherited from ​
Error.captureStackTrace