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

Method constructor

src/core/SpecService.ts:25–36  ·  view source on GitHub ↗
(
    message: string,
    public readonly code:
      | "INIT_ERROR"
      | "PERSIST_ERROR"
      | "LOAD_ERROR"
      | "SCAN_ERROR",
    public readonly cause?: Error
  )

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected