mcp-omnisearch
Version:
MCP server for integrating Omnisearch with LLMs
19 lines (18 loc) • 597 B
JavaScript
// Common type definitions for the MCP Omnisearch server
// Error types
export var ErrorType;
(function (ErrorType) {
ErrorType["API_ERROR"] = "API_ERROR";
ErrorType["RATE_LIMIT"] = "RATE_LIMIT";
ErrorType["INVALID_INPUT"] = "INVALID_INPUT";
ErrorType["PROVIDER_ERROR"] = "PROVIDER_ERROR";
})(ErrorType || (ErrorType = {}));
export class ProviderError extends Error {
constructor(type, message, provider, details) {
super(message);
this.type = type;
this.provider = provider;
this.details = details;
this.name = 'ProviderError';
}
}