mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-15 00:54:06 -08:00
17 lines
365 B
TypeScript
17 lines
365 B
TypeScript
|
import { INode } from '.';
|
||
|
|
||
|
/**
|
||
|
* Class for instantiating an operational error, e.g. a timeout error.
|
||
|
*/
|
||
|
export class WorkflowOperationError extends Error {
|
||
|
node: INode | undefined;
|
||
|
timestamp: number;
|
||
|
|
||
|
constructor(message: string, node?: INode, ) {
|
||
|
super(message);
|
||
|
this.name = this.constructor.name;
|
||
|
this.node = node;
|
||
|
this.timestamp = Date.now();
|
||
|
}
|
||
|
}
|