blob: 5b3c6ca7401365c3a9f9b3fb9c00f822659c8b3c [file] [log] [blame]
/*
* 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 com.google.dart.server.generated.types;
/**
* 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";
/**
* 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 "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";
/**
* 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";
/**
* 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";
}