recallrai
Version:
Official Node.js SDK for RecallrAI - Revolutionary contextual memory system that enables AI assistants to form meaningful connections between conversations, just like human memory.
38 lines (37 loc) • 1.45 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.InvalidCategoriesError = exports.UserAlreadyExistsError = exports.UserNotFoundError = exports.UserError = void 0;
const base_1 = require("./base");
class UserError extends base_1.RecallrAIError {
constructor(message, httpStatus) {
super(message, httpStatus);
this.name = "UserError";
Object.setPrototypeOf(this, UserError.prototype);
}
}
exports.UserError = UserError;
class UserNotFoundError extends UserError {
constructor(message, httpStatus) {
super(message, httpStatus);
this.name = "UserNotFoundError";
Object.setPrototypeOf(this, UserNotFoundError.prototype);
}
}
exports.UserNotFoundError = UserNotFoundError;
class UserAlreadyExistsError extends UserError {
constructor(message, httpStatus) {
super(message, httpStatus);
this.name = "UserAlreadyExistsError";
Object.setPrototypeOf(this, UserAlreadyExistsError.prototype);
}
}
exports.UserAlreadyExistsError = UserAlreadyExistsError;
class InvalidCategoriesError extends UserError {
constructor(message, httpStatus, invalidCategories) {
super(message, httpStatus);
this.name = "InvalidCategoriesError";
this.invalidCategories = invalidCategories;
Object.setPrototypeOf(this, InvalidCategoriesError.prototype);
}
}
exports.InvalidCategoriesError = InvalidCategoriesError;