MCPcopy Create free account
hub / github.com/CommandCodeAI/BaseAI / APIConnectionError

Class APIConnectionError

packages/core/src/common/errors.ts:106–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106export class APIConnectionError extends APIError {
107 override readonly status: undefined = undefined;
108
109 constructor({message, cause}: {message?: string; cause?: Error}) {
110 super(undefined, undefined, message || 'Connection error.', undefined);
111 if (cause) (this as Error).cause = cause;
112 }
113}
114
115export class APIConnectionTimeoutError extends APIConnectionError {
116 constructor({message}: {message?: string} = {}) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected