MCPcopy Create free account
hub / github.com/andylow92/file-system-like-github / constructor

Method constructor

apps/web/src/api/files.ts:37–41  ·  view source on GitHub ↗
(message: string, code = 'unknown_error')

Source from the content-addressed store, hash-verified

35 code: string;
36
37 constructor(message: string, code = 'unknown_error') {
38 super(message);
39 this.name = 'ApiClientError';
40 this.code = code;
41 }
42}
43
44async function requestJson<T>(input: RequestInfo, init?: RequestInit): Promise<T> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected