toggle menu
MCP Kotlin SDK
1.0-SNAPSHOT
jvm
switch theme
search in API
MCP Kotlin SDK
/
org.jetbrains.kotlinx.mcp
/
JSONRPCError
JSONRPCError
@
Serializable
data
class
JSONRPCError
(
val
code
:
ErrorCode
,
val
message
:
String
,
val
data
:
JsonObject
=
EmptyJsonObject
)
:
JSONRPCMessage
(
source
)
A response to a request that indicates an error occurred.
Members
Constructors
JSONRPCError
Link copied to clipboard
constructor
(
code
:
ErrorCode
,
message
:
String
,
data
:
JsonObject
=
EmptyJsonObject
)
Properties
code
Link copied to clipboard
val
code
:
ErrorCode
data
Link copied to clipboard
val
data
:
JsonObject
message
Link copied to clipboard
val
message
:
String