MCPcopy Create free account
hub / github.com/Tong89/smartNode / ApiError

Class ApiError

frontend/src/api/client.ts:50–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48 * times out. `message` is always a human-readable string.
49 */
50export class ApiError extends Error {
51 constructor(
52 message: string,
53 public readonly status?: number,
54 public readonly isTimeout = false,
55 ) {
56 super(message);
57 this.name = 'ApiError';
58 }
59}
60
61/**
62 * Typed API client. Instantiate once (or use the singleton `apiClient`)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected