mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
17 lines
439 B
TypeScript
17 lines
439 B
TypeScript
|
import type { INode } from '../Interfaces';
|
||
|
import { ApplicationError, type Level } from './application.error';
|
||
|
|
||
|
interface TriggerCloseErrorOptions extends ErrorOptions {
|
||
|
level: Level;
|
||
|
}
|
||
|
|
||
|
export class TriggerCloseError extends ApplicationError {
|
||
|
constructor(
|
||
|
readonly node: INode,
|
||
|
{ cause, level }: TriggerCloseErrorOptions,
|
||
|
) {
|
||
|
super('Trigger Close Failed', { cause, extra: { nodeName: node.name } });
|
||
|
this.level = level;
|
||
|
}
|
||
|
}
|