context-optimizer-mcp-server
Version:
Context optimization tools MCP server for AI coding assistants - compatible with GitHub Copilot, Cursor AI, and other MCP-supporting assistants
20 lines • 648 B
JavaScript
/**
* Error handling utilities
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.ErrorHandler = void 0;
class ErrorHandler {
// Implementation will be added in later phases
static handleError(error, context) {
if (error instanceof Error) {
return `${context ? `[${context}] ` : ''}${error.message}`;
}
return `${context ? `[${context}] ` : ''}Unknown error: ${String(error)}`;
}
static logError(error, context) {
console.error(this.handleError(error, context));
}
}
exports.ErrorHandler = ErrorHandler;
//# sourceMappingURL=errorHandling.js.map
;