跳转到内容

ErrorView

最近一次失败(SessionViewState.lastError):turn.error{recoverable:false} 或泵壳源故障的投影

readonly optional code?: string;

turn.error 的 errorKind 透传(词表锚定 IRErrorKind;可缺席)


readonly optional detail?: Record<string, unknown>;

turn.error 的 detail 透传(加法可选):机器可判事实,首个取值 { scope: 'plan' } = 开发者套餐配额拒绝(与 HTTP 面 error.detail.scope 同键同值;端侧 ErrorEnvelope.scope 同一读法)。缺席 = 无附加事实。


readonly message: string;

readonly recoverable: boolean;

turn.error 的 recoverable 镜 payload(protocol events.ts 位必填): 落到 lastError 的恒是失败形 = false(true 的咨询帧进 SessionView.notices,恒不到此处); 泵壳源故障(markSourceFailure)同为 false。必填而非可选——三端 reducer 同键同金样 (protocol test/fixtures/golden/turn-error-{recoverable,fatal}.json)。


readonly optional scope?: string;

turn.error 的 scope(错误链路归属;可缺席 = 非 turn.error 来源)