Download local-docker/packages/runtime/src/errors.ts from ti3x-m/web-decisions-webgpu-quickstart: direct link, hf CLI and curl.
- Browser
- Download file 376 Bytes
-
https://huggingface.co/spaces/ti3x-m/web-decisions-webgpu-quickstart/resolve/main/local-docker/packages/runtime/src/errors.ts
- Command line
-
hf download hf://spaces/ti3x-m/web-decisions-webgpu-quickstart/local-docker/packages/runtime/src/errors.ts
-
curl -L -o errors.ts https://huggingface.co/spaces/ti3x-m/web-decisions-webgpu-quickstart/resolve/main/local-docker/packages/runtime/src/errors.ts
376 Bytes
| export class LayaRuntimeError extends Error { | |
| constructor( | |
| message: string, | |
| readonly code: | |
| | "WEBGPU_UNAVAILABLE" | |
| | "INVALID_MANIFEST" | |
| | "LOAD_FAILED" | |
| | "INVALID_QUESTION" | |
| | "CONTEXT_OVERFLOW" | |
| | "CLOSED" | |
| | "INFERENCE_FAILED", | |
| readonly cause?: unknown, | |
| ) { | |
| super(message); | |
| this.name = "LayaRuntimeError"; | |
| } | |
| } | |