mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-10 20:37:29 -08:00
17 lines
398 B
TypeScript
17 lines
398 B
TypeScript
|
// 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 = error;
|
||
|
this.message = message;
|
||
|
}
|
||
|
}
|