Namespace Nexus\Mcp\Client\Exception

Exceptions
ClientAlreadyConnectedException

Thrown when connect() is called while the client is already attached to a transport.

ClientAlreadyInitializedException

Thrown when initialize() is called after the handshake has already started or completed.

ClientNotConnectedException

Thrown when an operation requires a transport but connect() has not been called.

ClientNotInitializedException

Thrown when a request is sent before the client handshake completes.

ServerCapabilityNotSupportedException

Thrown when a request targets a capability the server did not advertise during the initialize handshake.

UnsupportedProtocolVersionException

Thrown when the server's initialize response advertises a protocol version this client does not support, aborting the handshake before it is confirmed.