| 22 | * Custom error class for spec service related errors |
| 23 | */ |
| 24 | export 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 | |
| 39 | export class FileSystemSpecService implements ISpecStore, ISpecExplorer { |
| 40 | private readonly config: Required<SpecServiceConfig>; |
nothing calls this directly
no outgoing calls
no test coverage detected