jsonRPCError

Creates a JSONRPCError using the DSL builder.

val error = jsonRPCError {
code = JSONRPCError.ErrorCodes.INVALID_PARAMS
message = "Invalid params"
data = "Expected integer, got string"
}