zzz_jsonrpc_errors.ts

zzz-specific JSON-RPC error codes extending fuz_app's base set.

fuz_app provides 5 standard + 8 general application error codes. zzz adds domain-specific codes for AI provider errors.

Declarations
#

4 declarations

view source

JSONRPC_ERROR_CODES
#

zzz_jsonrpc_errors.ts view source

{ readonly ai_provider_error: -32700 | -32600 | -32601 | -32602 | -32603 | (number & $brand<"JsonrpcServerErrorCode">); readonly parse_error: -32700 | -32600 | -32601 | -32602 | -32603 | (number & $brand<...>); ... 13 more ...; readonly request_cancelled: -32700 | ... 4 more ... | (number & $brand<...>); }

Extended error codes with zzz-specific AI provider error.

jsonrpc_error_messages
#

zzz_jsonrpc_errors.ts view source

{ readonly ai_provider_error: (provider?: string | undefined, message?: string | undefined, data?: unknown) => { [x: string]: unknown; code: -32700 | -32600 | -32601 | -32602 | -32603 | (number & $brand<"JsonrpcServerErrorCode">); message: string; data?: unknown; }; ... 14 more ...; readonly request_cancelled: (...a...

Extended error message constructors.

jsonrpc_errors
#

zzz_jsonrpc_errors.ts view source

{ readonly ai_provider_error: (provider?: string | undefined, message?: string | undefined, data?: unknown) => ThrownJsonrpcError; readonly parse_error: (...args: any[]) => ThrownJsonrpcError; ... 13 more ...; readonly request_cancelled: (...args: any[]) => ThrownJsonrpcError; }

Extended error throwers.

JsonrpcErrorName
#

Imported by
#