Class McpServerException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.github.thought2code.mcp.annotated.exception.McpServerException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
McpServerComponentRegistrationException, McpServerConfigurationException, McpServerJsonProcessingException

public class McpServerException extends RuntimeException
This exception is thrown to indicate a general error in the MCP (Model Context Protocol) server.
Author:
codeboyzhou
See Also:
  • Constructor Details

    • McpServerException

      public McpServerException(String message)
      Creates a new instance of McpServerException with the specified detail message.
      Parameters:
      message - the detail message
    • McpServerException

      public McpServerException(String message, Throwable cause)
      Creates a new instance of McpServerException with the specified detail message and cause.
      Parameters:
      message - the detail message
      cause - the cause of the exception