BridgeErrorReason type alias

Module @runic-artifex/views in @runic-artifex/views 0.23.0

type BridgeErrorReason = "unavailable" | "invalid-input" | "unresolved-key" | "capacity" | "invalid-request" | "no-hello" | "protocol-mismatch" | "state-withheld" | "splice-base" | (string & {});

Refines a BridgeError kind (specs/application, "Errors"). With rejected: unavailable (a command that is not available), invalid-input (a value or input that does not decode or that the setter or command rejects, or a request over the input limit), unresolved-key (the key of a key command names no object), capacity (a limit of the window or connection), invalid-request and no-hello. With failed: protocol-mismatch (the host speaks another Views protocol). With any kind: state-withheld (the call ran, but no state that includes its effects can be published; do not retry it as if it had not run). An operation start rejected for a reason carries it too, such as identity-conflict. Open: a minor release may add a reason, and the client keeps a reason it does not know, so handle unknown reasons.