UNPKG

jlcpcb-mcp-parts-finder

Version:

MCP server for searching JLCPCB electronic components database

29 lines 808 B
export class JLCPCBError extends Error { code; details; constructor(message, code, details) { super(message); this.code = code; this.details = details; this.name = 'JLCPCBError'; } } export class DatabaseError extends JLCPCBError { constructor(message, details) { super(message, 'DATABASE_ERROR', details); this.name = 'DatabaseError'; } } export class ValidationError extends JLCPCBError { constructor(message, details) { super(message, 'VALIDATION_ERROR', details); this.name = 'ValidationError'; } } export class NotFoundError extends JLCPCBError { constructor(message, details) { super(message, 'NOT_FOUND', details); this.name = 'NotFoundError'; } } //# sourceMappingURL=index.js.map