Class MissingRequiredClientCapabilityException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
dev.tachyonmcp.core.server.domain.MissingRequiredClientCapabilityException
- All Implemented Interfaces:
Serializable
Thrown by a handler when processing a request requires a client capability the client did not
declare in
_meta.io.modelcontextprotocol/clientCapabilities. Mirrors
InvalidArgumentException: the feature registry that owns the request/response cycle
catches this and maps it to a MissingRequiredClientCapabilityError (-32021, MCP
2026-07-28 SEP-2575), rather than the handler encoding the wire error itself.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMissingRequiredClientCapabilityException(String message, Map<String, Object> requiredCapabilities) -
Method Summary
Modifier and TypeMethodDescriptionThe missing capabilities, keyed by name (e.g.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MissingRequiredClientCapabilityException
-
-
Method Details
-
requiredCapabilities
The missing capabilities, keyed by name (e.g.{"sampling": {}}).
-