mirror of
https://github.com/n8n-io/n8n.git
synced 2026-09-19 01:45:48 +08:00
14 lines
433 B
TypeScript
14 lines
433 B
TypeScript
import { OperationalError } from 'n8n-workflow';
|
|
|
|
/**
|
|
* Thrown when an Instance AI workflow save loses optimistic-concurrency:
|
|
* the workflow was modified outside the builder's last-known snapshot.
|
|
*/
|
|
export class WorkflowSaveConflictError extends OperationalError {
|
|
constructor(workflowId: string) {
|
|
super(`Workflow ${workflowId} was modified outside this conversation since the last save.`, {
|
|
level: 'warning',
|
|
});
|
|
}
|
|
}
|