Enum ResponseErrorCode

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ResponseErrorCode>

    public enum ResponseErrorCode
    extends java.lang.Enum<ResponseErrorCode>
    A number indicating the error type that occurred.
    • Enum Constant Detail

      • ParseError

        public static final ResponseErrorCode ParseError
        Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text.
      • InvalidRequest

        public static final ResponseErrorCode InvalidRequest
        The JSON sent is not a valid Request object.
      • MethodNotFound

        public static final ResponseErrorCode MethodNotFound
        The method does not exist / is not available.
      • InvalidParams

        public static final ResponseErrorCode InvalidParams
        Invalid method parameter(s).
      • InternalError

        public static final ResponseErrorCode InternalError
        Internal JSON-RPC error.
      • jsonrpcReservedErrorRangeStart

        public static final ResponseErrorCode jsonrpcReservedErrorRangeStart
        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

      • ServerNotInitialized

        public static final ResponseErrorCode ServerNotInitialized
        Error code indicating that a server received a notification or request before the server has received the initialize request.
      • jsonrpcReservedErrorRangeEnd

        public static final ResponseErrorCode jsonrpcReservedErrorRangeEnd
        This is the end range of JSON RPC reserved error codes. It doesn't denote a real error code.

        Since 3.16.0

      • lspReservedErrorRangeStart

        public static final ResponseErrorCode lspReservedErrorRangeStart
        This is the start range of LSP reserved error codes. It doesn't denote a real error code.

        Since 3.16.0

      • RequestFailed

        public static final ResponseErrorCode RequestFailed
        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

      • ServerCancelled

        public static final ResponseErrorCode ServerCancelled
        The server cancelled the request. This error code should only be used for requests that explicitly support being server cancellable.

        Since 3.17.0

      • ContentModified

        public static final ResponseErrorCode ContentModified
        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.

      • RequestCancelled

        public static final ResponseErrorCode RequestCancelled
        The client has canceled a request and a server as detected the cancel.
      • lspReservedErrorRangeEnd

        public static final ResponseErrorCode lspReservedErrorRangeEnd
        This is the end range of LSP reserved error codes. It doesn't denote a real error code.

        Since 3.16.0

    • Method Detail

      • values

        public static ResponseErrorCode[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ResponseErrorCode c : ResponseErrorCode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ResponseErrorCode valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getValue

        public int getValue()