n8n
Version:
n8n Workflow Automation Tool
22 lines • 1.13 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.BuilderCheckpointUnavailableError = exports.BuilderNotConfiguredError = void 0;
const api_types_1 = require("@n8n/api-types");
const n8n_workflow_1 = require("n8n-workflow");
class BuilderNotConfiguredError extends n8n_workflow_1.UserError {
constructor() {
super('Agent builder is not configured. An admin must select a provider and credential, or configure the n8n AI assistant proxy.');
this.code = api_types_1.BUILDER_NOT_CONFIGURED_CODE;
}
}
exports.BuilderNotConfiguredError = BuilderNotConfiguredError;
class BuilderCheckpointUnavailableError extends n8n_workflow_1.UserError {
constructor(reason) {
super(reason === 'expired'
? 'The builder question this answer belongs to has expired and can no longer be resumed.'
: 'The builder question this answer belongs to no longer exists.');
this.code = api_types_1.BUILDER_CHECKPOINT_UNAVAILABLE_CODE;
}
}
exports.BuilderCheckpointUnavailableError = BuilderCheckpointUnavailableError;
//# sourceMappingURL=errors.js.map