Class ToolCallCancelledException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.eqixiac.equinix.mcp.server.ToolCallCancelledException
All Implemented Interfaces:
Serializable

public final class ToolCallCancelledException extends RuntimeException
Thrown by a handler that stops because the client cancelled its tool call with notifications/cancelled. The server turns it into a tool error result that says nothing irreversible was sent.
See Also:
  • Constructor Details

    • ToolCallCancelledException

      public ToolCallCancelledException(String stage, String reason)
      Parameters:
      stage - where the handler stopped, for example "before the dry run"
      reason - the client's reason, or null