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
This exception is thrown to indicate a general error in the MCP (Model Context Protocol) server.
- Author:
- codeboyzhou
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMcpServerException(String message) Creates a new instance ofMcpServerExceptionwith the specified detail message.McpServerException(String message, Throwable cause) Creates a new instance ofMcpServerExceptionwith the specified detail message and cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
McpServerException
Creates a new instance ofMcpServerExceptionwith the specified detail message.- Parameters:
message- the detail message
-
McpServerException
Creates a new instance ofMcpServerExceptionwith the specified detail message and cause.- Parameters:
message- the detail messagecause- the cause of the exception
-