Package dev.langchain4j.mcp.client
Class McpException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
dev.langchain4j.mcp.client.McpException
- All Implemented Interfaces:
Serializable
A business exception raised over the MCP protocol
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
McpException
-
-
Method Details
-
getErrorCode
public int getErrorCode() -
getErrorMessage
-
getMessage
- Overrides:
getMessage
in classThrowable
-