McpError

class McpError(val code: Int, message: String, val data: JsonObject = EmptyJsonObject) : Exception(source)

Represents an error specific to the MCP protocol.

Constructors

Link copied to clipboard
constructor(code: Int, message: String, data: JsonObject = EmptyJsonObject)

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
val code: Int

The error code.

Link copied to clipboard
val data: JsonObject

Additional error data as a JSON object.

Link copied to clipboard
open override val message: String

The error message.