UNPKG

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.

27 lines (26 loc) 1.02 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.InternalServerError = exports.ServerError = void 0; const base_1 = require("./base"); /** * Base class for server-related exceptions. */ class ServerError extends base_1.RecallrAIError { constructor(message = 'Server error occurred', code = 'server_error', httpStatus = 500, details) { super(message, code, httpStatus, details); Object.setPrototypeOf(this, ServerError.prototype); } } exports.ServerError = ServerError; /** * Raised when the RecallrAI API encounters an internal server error. * * This exception is typically raised when the API returns a 5xx error code. */ class InternalServerError extends ServerError { constructor(message = 'Internal server error', code = 'server_error', httpStatus = 500, details) { super(message, code, httpStatus, details); Object.setPrototypeOf(this, InternalServerError.prototype); } } exports.InternalServerError = InternalServerError;