Skip to main content

Module error_codes

Module error_codes 

Source
Expand description

Standard JSON-RPC 2.0 error codes plus the LSP-defined ones. Used by the actor to build error responses to server-initiated requests we can’t fulfil.

Constants§

CONTENT_MODIFIED
The document changed while the request was in flight, so the result would be stale; the client should re-request if still relevant.
INTERNAL_ERROR
Internal JSON-RPC error.
INVALID_PARAMS
Invalid method parameter(s).
INVALID_REQUEST
JSON sent is not a valid Request object.
METHOD_NOT_FOUND
The method does not exist / is not available.
PARSE_ERROR
Invalid JSON received by the server.
REQUEST_CANCELLED
The request was cancelled ($/cancelRequest) and the server stopped work on it.
REQUEST_FAILED
The request was well-formed and understood, but failed (LSP 3.17).
SERVER_NOT_INITIALIZED
A request arrived before the initialize handshake completed.