Download apps/kimi-inspect/src/channel/errors.ts from SaylorTwift/kimi-code: direct link, hf CLI and curl.
- Browser
- Download file 446 Bytes
-
https://huggingface.co/SaylorTwift/kimi-code/resolve/main/apps/kimi-inspect/src/channel/errors.ts
- Command line
-
hf download hf://SaylorTwift/kimi-code/apps/kimi-inspect/src/channel/errors.ts
-
curl -L -o errors.ts https://huggingface.co/SaylorTwift/kimi-code/resolve/main/apps/kimi-inspect/src/channel/errors.ts
446 Bytes
| /** | |
| * Client-side RPC error surfaced when the debug-RPC 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'; | |
| } | |
| } | |