public enum ResponseErrorCode extends java.lang.Enum<ResponseErrorCode>
| Enum Constant and Description |
|---|
ContentModified
The server detected that the content of a document got
modified outside normal conditions.
|
InternalError
Internal JSON-RPC error.
|
InvalidParams
Invalid method parameter(s).
|
InvalidRequest
The JSON sent is not a valid Request object.
|
jsonrpcReservedErrorRangeEnd
This is the end range of JSON RPC reserved error codes.
|
jsonrpcReservedErrorRangeStart
This is the start range of JSON RPC reserved error codes.
|
lspReservedErrorRangeEnd
This is the end range of LSP reserved error codes.
|
lspReservedErrorRangeStart
This is the start range of LSP reserved error codes.
|
MethodNotFound
The method does not exist / is not available.
|
ParseError
Invalid JSON was received by the server.
|
RequestCancelled
The client has canceled a request and a server as detected
the cancel.
|
RequestFailed
A request failed but it was syntactically correct, e.g the
method name was known and the parameters were valid.
|
ServerCancelled
The server cancelled the request.
|
serverNotInitialized
Deprecated.
|
ServerNotInitialized
Error code indicating that a server received a notification or
request before the server has received the
initialize request. |
UnknownErrorCode |
| Modifier and Type | Method and Description |
|---|---|
int |
getValue() |
static ResponseErrorCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ResponseErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResponseErrorCode ParseError
public static final ResponseErrorCode InvalidRequest
public static final ResponseErrorCode MethodNotFound
public static final ResponseErrorCode InvalidParams
public static final ResponseErrorCode InternalError
public static final ResponseErrorCode jsonrpcReservedErrorRangeStart
ServerNotInitialized and the
UnknownErrorCode are left in the range.
Since 3.16.0
@Deprecated public static final ResponseErrorCode serverNotInitialized
ServerNotInitializedpublic static final ResponseErrorCode ServerNotInitialized
initialize request.public static final ResponseErrorCode UnknownErrorCode
public static final ResponseErrorCode jsonrpcReservedErrorRangeEnd
Since 3.16.0
public static final ResponseErrorCode lspReservedErrorRangeStart
Since 3.16.0
public static final ResponseErrorCode RequestFailed
Since 3.17.0
public static final ResponseErrorCode ServerCancelled
Since 3.17.0
public static final ResponseErrorCode ContentModified
If a client decides that a result is not of any use anymore the client should cancel the request.
public static final ResponseErrorCode RequestCancelled
public static final ResponseErrorCode lspReservedErrorRangeEnd
Since 3.16.0
public static ResponseErrorCode[] values()
for (ResponseErrorCode c : ResponseErrorCode.values()) System.out.println(c);
public static ResponseErrorCode valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic int getValue()