MCPcopy Create free account
hub / github.com/ReAPI-com/mcp-openapi / SpecServiceError

Class SpecServiceError

src/core/SpecService.ts:24–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22 * Custom error class for spec service related errors
23 */
24export class SpecServiceError extends Error {
25 constructor(
26 message: string,
27 public readonly code:
28 | "INIT_ERROR"
29 | "PERSIST_ERROR"
30 | "LOAD_ERROR"
31 | "SCAN_ERROR",
32 public readonly cause?: Error
33 ) {
34 super(message);
35 this.name = "SpecServiceError";
36 }
37}
38
39export class FileSystemSpecService implements ISpecStore, ISpecExplorer {
40 private readonly config: Required<SpecServiceConfig>;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected