Skip to main content
Glama

PrimeNG MCP Server

by hnkatze
errors.ts1.21 kB
/** * Custom error classes for better error handling */ /** * Base error class for MCP server errors */ export class MCPError extends Error { constructor(message: string, public code: string, public details?: any) { super(message); this.name = 'MCPError'; } } /** * Error during web scraping operations */ export class ScrapingError extends MCPError { constructor(message: string, public url?: string, details?: any) { super(message, 'SCRAPING_ERROR', details); this.name = 'ScrapingError'; } } /** * Error during cache operations */ export class CacheError extends MCPError { constructor(message: string, details?: any) { super(message, 'CACHE_ERROR', details); this.name = 'CacheError'; } } /** * Error during code generation */ export class CodeGenerationError extends MCPError { constructor(message: string, details?: any) { super(message, 'CODE_GENERATION_ERROR', details); this.name = 'CodeGenerationError'; } } /** * Validation error for invalid inputs */ export class ValidationError extends MCPError { constructor(message: string, details?: any) { super(message, 'VALIDATION_ERROR', details); this.name = 'ValidationError'; } }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/hnkatze/PrimeNG_MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server