Class McpAuthException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.juneau.rest.client.mcp.auth.McpAuthException
- All Implemented Interfaces:
Serializable
Runtime exception raised by the MCP client-side auth layer when metadata discovery, PRM fetch/parse, an issuer
(
iss) validation check, or token acquisition fails.
Unchecked so it can propagate cleanly out of a Supplier.get() token-supplier call fed to
McpAuthInterceptor (which aborts the request when the supplier throws).
- Since:
- 10.0.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMcpAuthException(String msg) Constructor.McpAuthException(String msg, Throwable cause) Constructor. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
McpAuthException
Constructor.- Parameters:
msg- The detail message. May benull.
-
McpAuthException
Constructor.- Parameters:
msg- The detail message. May benull.cause- The cause. May benull.
-