Skip to content

ProtocolError

A local framing/correlation violation, never a server-authored MSP error.

Property Type Stability Presence Description
line string | undefined required The inbound frame (wire line) the violation was detected on, when there is one — the whole line, e.g. the response a pending request refused; an oversized frame is cut to the frame limit. Absent for local state errors (closed connection, EOF) that no frame caused.
Method Signature Stability Description
constructor new ProtocolError(message: string, line?: string)
Source

clients/sdk-ts/src/connection/connection.ts:138

{
"kind": "Class",
"canonicalPath": "ProtocolError"
}