File size: 376 Bytes
3fd5cc1 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | 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";
}
}
|