mirror of
https://github.com/n8n-io/n8n.git
synced 2026-06-03 10:17:00 +02:00
18 lines
481 B
TypeScript
18 lines
481 B
TypeScript
import { ApplicationError } from './application.error';
|
|
import type { ErrorLevel } from './error.types';
|
|
import type { INode } from '../Interfaces';
|
|
|
|
interface TriggerCloseErrorOptions extends ErrorOptions {
|
|
level: ErrorLevel;
|
|
}
|
|
|
|
export class TriggerCloseError extends ApplicationError {
|
|
constructor(
|
|
readonly node: INode,
|
|
{ cause, level }: TriggerCloseErrorOptions,
|
|
) {
|
|
super('Trigger Close Failed', { cause, extra: { nodeName: node.name } });
|
|
this.level = level;
|
|
}
|
|
}
|