| /* |
| * Copyright (c) 2014, the Dart project authors. |
| * |
| * Licensed under the Eclipse Public License v1.0 (the "License"); you may not use this file except |
| * in compliance with the License. You may obtain a copy of the License at |
| * |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Unless required by applicable law or agreed to in writing, software distributed under the License |
| * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express |
| * or implied. See the License for the specific language governing permissions and limitations under |
| * the License. |
| * |
| * This file has been automatically generated. Please do not edit it manually. |
| * To regenerate the file, use the script "pkg/analysis_server/tool/spec/generate_files". |
| */ |
| package org.dartlang.analysis.server.protocol; |
| |
| /** |
| * An enumeration of the types of errors that can occur in the execution of the server. |
| * |
| * @coverage dart.server.generated.types |
| */ |
| public class RequestErrorCode { |
| |
| /** |
| * An "analysis.getErrors" or "analysis.getNavigation" request could not be satisfied because the |
| * content of the file changed before the requested results could be computed. |
| */ |
| public static final String CONTENT_MODIFIED = "CONTENT_MODIFIED"; |
| |
| /** |
| * A request specified a FilePath which does not match a file in an analysis root, or the requested |
| * operation is not available for the file. |
| */ |
| public static final String FILE_NOT_ANALYZED = "FILE_NOT_ANALYZED"; |
| |
| /** |
| * An "edit.format" request specified a FilePath which does not match a Dart file in an analysis |
| * root. |
| */ |
| public static final String FORMAT_INVALID_FILE = "FORMAT_INVALID_FILE"; |
| |
| /** |
| * An "edit.format" request specified a file that contains syntax errors. |
| */ |
| public static final String FORMAT_WITH_ERRORS = "FORMAT_WITH_ERRORS"; |
| |
| /** |
| * An "analysis.getErrors" request specified a FilePath which does not match a file currently |
| * subject to analysis. |
| */ |
| public static final String GET_ERRORS_INVALID_FILE = "GET_ERRORS_INVALID_FILE"; |
| |
| /** |
| * An "analysis.getNavigation" request specified a FilePath which does not match a file currently |
| * subject to analysis. |
| */ |
| public static final String GET_NAVIGATION_INVALID_FILE = "GET_NAVIGATION_INVALID_FILE"; |
| |
| /** |
| * A path passed as an argument to a request (such as analysis.reanalyze) is required to be an |
| * analysis root, but isn't. |
| */ |
| public static final String INVALID_ANALYSIS_ROOT = "INVALID_ANALYSIS_ROOT"; |
| |
| /** |
| * The context root used to create an execution context does not exist. |
| */ |
| public static final String INVALID_EXECUTION_CONTEXT = "INVALID_EXECUTION_CONTEXT"; |
| |
| /** |
| * An "analysis.updateContent" request contained a ChangeContentOverlay object which can't be |
| * applied, due to an edit having an offset or length that is out of range. |
| */ |
| public static final String INVALID_OVERLAY_CHANGE = "INVALID_OVERLAY_CHANGE"; |
| |
| /** |
| * One of the method parameters was invalid. |
| */ |
| public static final String INVALID_PARAMETER = "INVALID_PARAMETER"; |
| |
| /** |
| * A malformed request was received. |
| */ |
| public static final String INVALID_REQUEST = "INVALID_REQUEST"; |
| |
| /** |
| * The "--no-index" flag was passed when the analysis server created, but this API call requires an |
| * index to have been generated. |
| */ |
| public static final String NO_INDEX_GENERATED = "NO_INDEX_GENERATED"; |
| |
| /** |
| * An "edit.organizeDirectives" request specified a Dart file that cannot be analyzed. The reason |
| * is described in the message. |
| */ |
| public static final String ORGANIZE_DIRECTIVES_ERROR = "ORGANIZE_DIRECTIVES_ERROR"; |
| |
| /** |
| * Another refactoring request was received during processing of this one. |
| */ |
| public static final String REFACTORING_REQUEST_CANCELLED = "REFACTORING_REQUEST_CANCELLED"; |
| |
| /** |
| * The analysis server has already been started (and hence won't accept new connections). |
| * |
| * This error is included for future expansion; at present the analysis server can only speak to |
| * one client at a time so this error will never occur. |
| */ |
| public static final String SERVER_ALREADY_STARTED = "SERVER_ALREADY_STARTED"; |
| |
| /** |
| * An internal error occurred in the analysis server. Also see the server.error notification. |
| */ |
| public static final String SERVER_ERROR = "SERVER_ERROR"; |
| |
| /** |
| * An "edit.sortMembers" request specified a FilePath which does not match a Dart file in an |
| * analysis root. |
| */ |
| public static final String SORT_MEMBERS_INVALID_FILE = "SORT_MEMBERS_INVALID_FILE"; |
| |
| /** |
| * An "edit.sortMembers" request specified a Dart file that has scan or parse errors. |
| */ |
| public static final String SORT_MEMBERS_PARSE_ERRORS = "SORT_MEMBERS_PARSE_ERRORS"; |
| |
| /** |
| * An "analysis.setPriorityFiles" request includes one or more files that are not being analyzed. |
| * |
| * This is a legacy error; it will be removed before the API reaches version 1.0. |
| */ |
| public static final String UNANALYZED_PRIORITY_FILES = "UNANALYZED_PRIORITY_FILES"; |
| |
| /** |
| * A request was received which the analysis server does not recognize, or cannot handle in its |
| * current configuation. |
| */ |
| public static final String UNKNOWN_REQUEST = "UNKNOWN_REQUEST"; |
| |
| /** |
| * The analysis server was requested to perform an action on a source that does not exist. |
| */ |
| public static final String UNKNOWN_SOURCE = "UNKNOWN_SOURCE"; |
| |
| /** |
| * The analysis server was requested to perform an action which is not supported. |
| * |
| * This is a legacy error; it will be removed before the API reaches version 1.0. |
| */ |
| public static final String UNSUPPORTED_FEATURE = "UNSUPPORTED_FEATURE"; |
| |
| } |