n8n/packages/workflow/src/WorkflowActivationError.ts

20 lines
458 B
TypeScript
Raw Normal View History

// eslint-disable-next-line import/no-cycle
import { ExecutionBaseError, INode } from '.';
/**
* Class for instantiating an workflow activation error
*/
export class WorkflowActivationError extends ExecutionBaseError {
node: INode | undefined;
constructor(message: string, error: Error, node?: INode) {
super(error);
this.node = node;
this.cause = {
message: error.message,
stack: error.stack as string,
};
this.message = message;
}
}