Skip to main content

Module error_codes

Module error_codes 

Source
Expand description

Canonical error codes emitted while opening a client route.

Error frames remain extensible strings, but these daemon-owned route-open outcomes need identical spelling across the daemon and SDK retry policies.

Constants§

MODULE_NO_PROTOCOL
The target module is declared as speaking no subc wire protocol (protocol: "none" in daemon config), so it has no control lane and can never accept a route. The daemon supervises its process and nothing else.
MODULE_RELOADING
The target module’s endpoint is draining for a reload, restart or disable.
MODULE_REMOVED
MODULE_TIMEOUT
MODULE_WARMING
STALE_ROUTE_EPOCH
TARGET_UNAVAILABLE
UNKNOWN_CHANNEL
UNKNOWN_MODULE

Functions§

is_established_route_dead
Whether the caller should evict this established route, reopen it, and resend the request once. Consumers mapping route death to their own custody, provider, or suspect verdict keep their own named code lists; sharing this predicate for those meanings can change a verdict on a protocol bump (prefrontal#59).
is_retryable_route_open
Whether a route.open refusal carrying code may be retried in place within the caller’s deadline, or is terminal for the target as named.