mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2026-06-12 02:07:54 +02:00
21 lines
574 B
TypeScript
21 lines
574 B
TypeScript
import type { INode } from '..';
|
|
import { ExecutionBaseError } from './abstract/execution-base.error';
|
|
|
|
/**
|
|
* Class for instantiating an operational error, e.g. a timeout error.
|
|
*/
|
|
export class WorkflowOperationError extends ExecutionBaseError {
|
|
node: INode | undefined;
|
|
|
|
timestamp: number;
|
|
|
|
constructor(message: string, node?: INode, description?: string) {
|
|
super(message, { cause: undefined });
|
|
this.level = 'warning';
|
|
this.name = this.constructor.name;
|
|
if (description) this.description = description;
|
|
this.node = node;
|
|
this.timestamp = Date.now();
|
|
}
|
|
}
|