Mcp工具异常(Exception)

Base exception for MCP tools on JVM and Android.

Inheritors

类型

Link copied to clipboard

当无法生成 MCP 工具声明时,会抛出异常。

Link copied to clipboard

当 MCP 工具或资源操作失败时,会抛出异常。

Link copied to clipboard
class McpToolLoadingException(message: String, cause: Throwable? = null) : McpToolException

当 MCP 工具的发现或初始化失败时,会抛出异常。

属性(Properties)

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
open val message: String?