Package org.mcpjava.server
Class McpException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.mcpjava.server.McpException
- All Implemented Interfaces:
Serializable
Base exception for MCP-related errors.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new exception with no detail message.McpException(String message) Creates a new exception with the given detail message.McpException(String message, Throwable cause) Creates a new exception with the given detail message and cause.McpException(Throwable cause) Creates a new exception with the given 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
-
McpException
public McpException()Creates a new exception with no detail message. -
McpException
Creates a new exception with the given detail message.- Parameters:
message- the detail message
-
McpException
Creates a new exception with the given detail message and cause.- Parameters:
message- the detail messagecause- the cause
-
McpException
Creates a new exception with the given cause.- Parameters:
cause- the cause
-