@n8n/n8n-nodes-langchain
Version:
21 lines • 785 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ChatTriggerAuthorizationError = void 0;
const n8n_workflow_1 = require("n8n-workflow");
class ChatTriggerAuthorizationError extends n8n_workflow_1.UserError {
constructor(responseCode, message) {
if (message === undefined) {
message = 'Authorization problem!';
if (responseCode === 401) {
message = 'Authorization is required!';
}
else if (responseCode === 403) {
message = 'Authorization data is wrong!';
}
}
super(message);
this.responseCode = responseCode;
}
}
exports.ChatTriggerAuthorizationError = ChatTriggerAuthorizationError;
//# sourceMappingURL=error.js.map