MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / constructor

Method constructor

src/ui-server/api/respond.ts:46–51  ·  view source on GitHub ↗
(code: ApiErrorCode, message: string, hint?: string)

Source from the content-addressed store, hash-verified

44 readonly hint: string | undefined;
45
46 constructor(code: ApiErrorCode, message: string, hint?: string) {
47 super(message);
48 this.name = 'ApiError';
49 this.code = code;
50 this.hint = hint;
51 }
52}
53
54export function badRequest(message: string, hint?: string): ApiError {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected