replyWithServerError

abstract suspend fun replyWithServerError(code: Int, message: String, data: JsonElement? = null)

Replies with JsonRpcException.ServerError. Could be thought of as a 500 in the HTTP World

Parameters

data

Optional JsonElement providing additional error context, forwarded as the JSON RPC 2.0 error.data field.