Download packages/klient/src/core/errors.ts from SaylorTwift/kimi-code: direct link, hf CLI and curl.
- Browser
- Download file 438 Bytes
-
https://huggingface.co/SaylorTwift/kimi-code/resolve/main/packages/klient/src/core/errors.ts
- Command line
-
hf download hf://SaylorTwift/kimi-code/packages/klient/src/core/errors.ts
-
curl -L -o errors.ts https://huggingface.co/SaylorTwift/kimi-code/resolve/main/packages/klient/src/core/errors.ts
438 Bytes
| /** | |
| * Client-side RPC error surfaced when the wire envelope carries a non-zero | |
| * `code`. Mirrors the server envelope (`{ code, msg, data, request_id }`) — the | |
| * numeric `code` is the stable branch key across the wire, not `instanceof`. | |
| */ | |
| export class RPCError extends Error { | |
| constructor( | |
| readonly code: number, | |
| message: string, | |
| readonly details?: unknown, | |
| ) { | |
| super(message); | |
| this.name = 'RPCError'; | |
| } | |
| } | |