mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2026-07-31 00:57:23 +02:00
20 lines
430 B
TypeScript
20 lines
430 B
TypeScript
import { WorkflowOperationError } from './workflow-operation.error';
|
|
|
|
export class SubworkflowOperationError extends WorkflowOperationError {
|
|
override description = '';
|
|
|
|
override cause: Error;
|
|
|
|
constructor(message: string, description: string) {
|
|
super(message);
|
|
this.name = this.constructor.name;
|
|
this.description = description;
|
|
|
|
this.cause = {
|
|
name: this.name,
|
|
message,
|
|
stack: this.stack as string,
|
|
};
|
|
}
|
|
}
|