pub struct ErrorCode(pub i32);Tuple Fields§
§0: i32Implementations§
source§impl ErrorCode
impl ErrorCode
pub const PARSE_ERROR: Self = _
pub const INVALID_REQUEST: Self = _
pub const METHOD_NOT_FOUND: Self = _
pub const INVALID_PARAMS: Self = _
pub const INTERNAL_ERROR: Self = _
sourcepub const JSONRPC_RESERVED_ERROR_RANGE_START: Self = _
pub const JSONRPC_RESERVED_ERROR_RANGE_START: Self = _
This is the start range of JSON-RPC reserved error codes.
It doesn’t denote a real error code. No LSP error codes should
be defined between the start and end range. For backwards
compatibility the ServerNotInitialized and the UnknownErrorCode
are left in the range.
@since 3.16.0
sourcepub const SERVER_NOT_INITIALIZED: Self = _
pub const SERVER_NOT_INITIALIZED: Self = _
Error code indicating that a server received a notification or
request before the server has received the initialize request.
pub const UNKNOWN_ERROR_CODE: Self = _
sourcepub const JSONRPC_RESERVED_ERROR_RANGE_END: Self = _
pub const JSONRPC_RESERVED_ERROR_RANGE_END: Self = _
This is the end range of JSON-RPC reserved error codes. It doesn’t denote a real error code.
@since 3.16.0
sourcepub const LSP_RESERVED_ERROR_RANGE_START: Self = _
pub const LSP_RESERVED_ERROR_RANGE_START: Self = _
This is the start range of LSP reserved error codes. It doesn’t denote a real error code.
@since 3.16.0
sourcepub const REQUEST_FAILED: Self = _
pub const REQUEST_FAILED: Self = _
A request failed but it was syntactically correct, e.g the method name was known and the parameters were valid. The error message should contain human readable information about why the request failed.
@since 3.17.0
sourcepub const SERVER_CANCELLED: Self = _
pub const SERVER_CANCELLED: Self = _
The server cancelled the request. This error code should only be used for requests that explicitly support being server cancellable.
@since 3.17.0
sourcepub const CONTENT_MODIFIED: Self = _
pub const CONTENT_MODIFIED: Self = _
The server detected that the content of a document got modified outside normal conditions. A server should NOT send this error code if it detects a content change in it unprocessed messages. The result even computed on an older state might still be useful for the client.
If a client decides that a result is not of any use anymore the client should cancel the request.
sourcepub const REQUEST_CANCELLED: Self = _
pub const REQUEST_CANCELLED: Self = _
The client has canceled a request and a server as detected the cancel.
sourcepub const LSP_RESERVED_ERROR_RANGE_END: Self = _
pub const LSP_RESERVED_ERROR_RANGE_END: Self = _
This is the end range of LSP reserved error codes. It doesn’t denote a real error code.
@since 3.16.0
Trait Implementations§
source§impl<'de> Deserialize<'de> for ErrorCode
impl<'de> Deserialize<'de> for ErrorCode
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
source§impl Error for ErrorCode
impl Error for ErrorCode
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl Ord for ErrorCode
impl Ord for ErrorCode
source§impl PartialEq<ErrorCode> for ErrorCode
impl PartialEq<ErrorCode> for ErrorCode
source§impl PartialOrd<ErrorCode> for ErrorCode
impl PartialOrd<ErrorCode> for ErrorCode
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read more