academy.exception¶
HandleClosedError
¶
HandleNotBoundError
¶
Bases: Exception
Handle to agent is in an unbound state.
An unbound handle (typically, an instance of UnboundRemoteHandle
) is
initialized with a target agent ID and exchange, but does not have an
identifier itself. Thus, the handle does not have a mailbox in the exchange
to receive response messages.
A handle must be bound to be used, either as a unique client with its own
mailbox or as bound to a running agent where it shares a mailbox with that
running agent. To create a client bound handle, use
handle.bind_as_client()
.
Any agent behavior that has a handle to another agent as an instance attribute will be automatically bound to the agent when the agent begins running.