mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2026-07-31 17:17:23 +02:00
16 lines
417 B
TypeScript
16 lines
417 B
TypeScript
import { ApplicationError } from 'n8n-workflow';
|
|
|
|
export class TaskRejectError extends ApplicationError {
|
|
constructor(public reason: string) {
|
|
super(`Task rejected with reason: ${reason}`, { level: 'info' });
|
|
}
|
|
}
|
|
|
|
export class TaskDeferredError extends ApplicationError {
|
|
constructor() {
|
|
super('Task deferred until runner is ready', { level: 'info' });
|
|
}
|
|
}
|
|
|
|
export class TaskError extends ApplicationError {}
|