Problem ​Contract 2.0.0 · package sha256
a857eca95b35921109faf997094bb4192f12527d9d0fcd4be7e97f06425bad6e· generated fromconfigurator-runtime.d.tsbyservices/onsite-scripter/scripts/build-contract-docs.mjs; edit the source, not this file.
Interface · import type { Problem } from '@holostep-configurators/runtime-client/contract'; · stable · since 2.0.0 · section 2. Operations, reports, causes, problems
Data, never an Error: safe to store, send and render. Frozen.
| Member | Kind | Summary |
|---|---|---|
code |
property | What happened; see ProblemCode. |
message |
property | At most 200 characters. |
docs |
property | URL of this code's page for this contract version. |
op? |
property | The operation it belongs to, when one does. |
path? |
property | JSON path or member path the problem is about. |
node? |
property | The scene-model node it belongs to; unset for a collection item's or a stage layer's (see path). |
url? |
property | The failed asset, without query string or fragment. |
asset? |
property | For 'asset-failed' and 'asset-degraded': what failed. |
event? |
property | The event name, for 'handler-threw', 'handler-async', 'handler-rejected' and 'unknown-event'. |
layer? |
property | The document layer, for 'document-error' and 'apply-failed' (see info().document.layers). |
didYouMean? |
property | Up to 3 close matches, e.g. authored names for 'target-unmatched'; for 'invalid-input', the thrown HoloInputError's didYouMean (spec section 8.1). |
at |
property | Epoch milliseconds. |
export interface Problem {
readonly code: ProblemCode;
readonly message: string;
readonly docs: string;
readonly op?: OpId;
readonly path?: string;
readonly node?: string;
readonly url?: string;
readonly asset?: 'model' | 'texture' | 'environment' | 'other';
readonly event?: string;
readonly layer?: string;
readonly didYouMean?: readonly string[];
readonly at: number;
}
| Rule | Result |
|---|---|
| 1. Neutral name | pass: Problem names no product |
| 2. A precedent | not recorded: no ledger row (coverage.json) names this member or its owner |
| 3. Two apps, or labs | pass: 20 apps (fleet cross-check: app-04c2774145, app-37356bf09f, app-4762caacdc, app-4f16d2f6da, app-4fd23bc869, app-822bb9d6aa, app-8675b3225c, app-b362a81c85 and 12 more) |
| 4. The cheaper fix first | not recorded per member (Appendix B decides it per need) |