Protocol errors are JSON-RPC errors with a contract code and data (for example retryable, reason, capability); connections end with WebSocket close codes. Each SDK surfaces them as typed errors.
Generated from bma-executor-sdk 1.3.0 and its contract (contracts/bma/executor, protocol bma.executor.v1.1). Install, credentials and quick starts are on the bma-executor-sdk overview; the protocol itself is described in Executor Protocol.

RPC error

A JSON-RPC error returned by the peer, or returned by a handler to answer with a specific code and data.

Client errors

The executor end: not connected, stopped, replaced by another executor with the same identity (close code 4004: stop, do not reconnect), reconnects exhausted.

Harness errors

The harness end: the session ended, the executor was lost before tool.result (the tool outcome is unknown), or the executor rejected session.assign.

Close codes

Which close codes end the client for good.

JSON-RPC error codes

Error data

Close codes