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

public class McpAuthException extends RuntimeException
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 Details

    • McpAuthException

      public McpAuthException(String msg)
      Constructor.
      Parameters:
      msg - The detail message. May be null.
    • McpAuthException

      public McpAuthException(String msg, Throwable cause)
      Constructor.
      Parameters:
      msg - The detail message. May be null.
      cause - The cause. May be null.