MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / sendError

Method sendError

pkg/lsp/server.go:412–422  ·  view source on GitHub ↗

sendError sends an error response

(id interface{}, code int, message string)

Source from the content-addressed store, hash-verified

410
411// sendError sends an error response
412func (s *Server) sendError(id interface{}, code int, message string) {
413 resp := Response{
414 JSONRPC: "2.0",
415 ID: id,
416 Error: &ResponseError{
417 Code: code,
418 Message: message,
419 },
420 }
421 s.sendMessage(resp)
422}
423
424// SendNotification sends a notification to the client.
425//

Callers 2

handleMessageMethod · 0.95

Calls 1

sendMessageMethod · 0.95

Tested by

no test coverage detected