Skip to content

EngineErrorMessage

Defined in: packages/protocol/src/lib/envelope.ts:342

A failure the engine host reports for a request (or for a stream-level fault with no recoverable request).

requestId is optional: a host may fail before it can recover a correlatable id (e.g. the inbound frame was unparseable), in which case there is no request to reject and the error is informational. code is reserved for a machine-readable error kind — there is deliberately no closed taxonomy yet, so consumers must treat an unknown code (or its absence) gracefully and fall back to error for display.

readonly optional code?: string

Defined in: packages/protocol/src/lib/envelope.ts:347


readonly error: string

Defined in: packages/protocol/src/lib/envelope.ts:346


readonly optional requestId?: MessageId

Defined in: packages/protocol/src/lib/envelope.ts:344


readonly optional sessionId?: SessionId

Defined in: packages/protocol/src/lib/envelope.ts:345


readonly type: "engine.error"

Defined in: packages/protocol/src/lib/envelope.ts:343