Flutter Engine
The Flutter Engine
RequestErrorCode.java
Go to the documentation of this file.
1/*
2 * Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
3 * for details. All rights reserved. Use of this source code is governed by a
4 * BSD-style license that can be found in the LICENSE file.
5 *
6 * This file has been automatically generated. Please do not edit it manually.
7 * To regenerate the file, use the script "pkg/analysis_server/tool/spec/generate_files".
8 */
9package org.dartlang.analysis.server.protocol;
10
11/**
12 * An enumeration of the types of errors that can occur in the execution of the server.
13 *
14 * @coverage dart.server.generated.types
15 */
16public class RequestErrorCode {
17
18 /**
19 * An "analysis.getErrors" or "analysis.getNavigation" request could not be satisfied because the
20 * content of the file changed before the requested results could be computed.
21 */
22 public static final String CONTENT_MODIFIED = "CONTENT_MODIFIED";
23
24 /**
25 * The server was unable to open a port for the diagnostic server.
26 */
27 public static final String DEBUG_PORT_COULD_NOT_BE_OPENED = "DEBUG_PORT_COULD_NOT_BE_OPENED";
28
29 /**
30 * A request specified a FilePath which does not match a file in an analysis root, or the requested
31 * operation is not available for the file.
32 */
33 public static final String FILE_NOT_ANALYZED = "FILE_NOT_ANALYZED";
34
35 /**
36 * A file was change while widget descriptions were being computed.
37 */
38 public static final String FLUTTER_GET_WIDGET_DESCRIPTION_CONTENT_MODIFIED = "FLUTTER_GET_WIDGET_DESCRIPTION_CONTENT_MODIFIED";
39
40 /**
41 * The given location does not have a supported widget.
42 */
43 public static final String FLUTTER_GET_WIDGET_DESCRIPTION_NO_WIDGET = "FLUTTER_GET_WIDGET_DESCRIPTION_NO_WIDGET";
44
45 /**
46 * The given property expression is invalid, e.g. has a syntax error.
47 */
48 public static final String FLUTTER_SET_WIDGET_PROPERTY_VALUE_INVALID_EXPRESSION = "FLUTTER_SET_WIDGET_PROPERTY_VALUE_INVALID_EXPRESSION";
49
50 /**
51 * The given property identifier is not valid. It might have never been valid, or a change to code
52 * invalidated it, or its TTL was exceeded.
53 */
54 public static final String FLUTTER_SET_WIDGET_PROPERTY_VALUE_INVALID_ID = "FLUTTER_SET_WIDGET_PROPERTY_VALUE_INVALID_ID";
55
56 /**
57 * The value of the property cannot be removed, for example because the corresponding constructor
58 * argument is required, and the server does not know what default value to use.
59 */
60 public static final String FLUTTER_SET_WIDGET_PROPERTY_VALUE_IS_REQUIRED = "FLUTTER_SET_WIDGET_PROPERTY_VALUE_IS_REQUIRED";
61
62 /**
63 * An "edit.format" request specified a FilePath which does not match a Dart file in an analysis
64 * root.
65 */
66 public static final String FORMAT_INVALID_FILE = "FORMAT_INVALID_FILE";
67
68 /**
69 * An "edit.format" request specified a file that contains syntax errors.
70 */
71 public static final String FORMAT_WITH_ERRORS = "FORMAT_WITH_ERRORS";
72
73 /**
74 * An "analysis.getErrors" request specified a FilePath which does not match a file currently
75 * subject to analysis.
76 */
77 public static final String GET_ERRORS_INVALID_FILE = "GET_ERRORS_INVALID_FILE";
78
79 /**
80 * An "edit.getFixes" request specified a FilePath which does not match a file currently subject to
81 * analysis.
82 */
83 public static final String GET_FIXES_INVALID_FILE = "GET_FIXES_INVALID_FILE";
84
85 /**
86 * An "analysis.getImportedElements" request specified a FilePath that does not match a file
87 * currently subject to analysis.
88 */
89 public static final String GET_IMPORTED_ELEMENTS_INVALID_FILE = "GET_IMPORTED_ELEMENTS_INVALID_FILE";
90
91 /**
92 * An "analysis.getNavigation" request specified a FilePath which does not match a file currently
93 * subject to analysis.
94 */
95 public static final String GET_NAVIGATION_INVALID_FILE = "GET_NAVIGATION_INVALID_FILE";
96
97 /**
98 * An "analysis.getReachableSources" request specified a FilePath which does not match a file
99 * currently subject to analysis.
100 */
101 public static final String GET_REACHABLE_SOURCES_INVALID_FILE = "GET_REACHABLE_SOURCES_INVALID_FILE";
102
103 /**
104 * An "analysis.getSignature" request specified a FilePath which does not match a file currently
105 * subject to analysis.
106 */
107 public static final String GET_SIGNATURE_INVALID_FILE = "GET_SIGNATURE_INVALID_FILE";
108
109 /**
110 * An "analysis.getSignature" request specified an offset which is not a valid location within for
111 * the contents of the file specified FilePath.
112 */
113 public static final String GET_SIGNATURE_INVALID_OFFSET = "GET_SIGNATURE_INVALID_OFFSET";
114
115 /**
116 * An "analysis.getSignature" request specified an offset that could not be matched to a function
117 * call.
118 */
119 public static final String GET_SIGNATURE_UNKNOWN_FUNCTION = "GET_SIGNATURE_UNKNOWN_FUNCTION";
120
121 /**
122 * An "edit.importElements" request specified a FilePath that does not match a file currently
123 * subject to analysis.
124 */
125 public static final String IMPORT_ELEMENTS_INVALID_FILE = "IMPORT_ELEMENTS_INVALID_FILE";
126
127 /**
128 * A path passed as an argument to a request (such as analysis.reanalyze) is required to be an
129 * analysis root, but isn't.
130 */
131 public static final String INVALID_ANALYSIS_ROOT = "INVALID_ANALYSIS_ROOT";
132
133 /**
134 * The context root used to create an execution context does not exist.
135 */
136 public static final String INVALID_EXECUTION_CONTEXT = "INVALID_EXECUTION_CONTEXT";
137
138 /**
139 * The format of the given file path is invalid, e.g. is not absolute and normalized.
140 */
141 public static final String INVALID_FILE_PATH_FORMAT = "INVALID_FILE_PATH_FORMAT";
142
143 /**
144 * An "analysis.updateContent" request contained a ChangeContentOverlay object which can't be
145 * applied, due to an edit having an offset or length that is out of range.
146 */
147 public static final String INVALID_OVERLAY_CHANGE = "INVALID_OVERLAY_CHANGE";
148
149 /**
150 * One of the method parameters was invalid.
151 */
152 public static final String INVALID_PARAMETER = "INVALID_PARAMETER";
153
154 /**
155 * A malformed request was received.
156 */
157 public static final String INVALID_REQUEST = "INVALID_REQUEST";
158
159 /**
160 * An "edit.organizeDirectives" request specified a Dart file that cannot be analyzed. The reason
161 * is described in the message.
162 */
163 public static final String ORGANIZE_DIRECTIVES_ERROR = "ORGANIZE_DIRECTIVES_ERROR";
164
165 /**
166 * Another refactoring request was received during processing of this one.
167 */
168 public static final String REFACTORING_REQUEST_CANCELLED = "REFACTORING_REQUEST_CANCELLED";
169
170 /**
171 * The analysis server has already been started (and hence won't accept new connections).
172 *
173 * This error is included for future expansion; at present the analysis server can only speak to
174 * one client at a time so this error will never occur.
175 */
176 public static final String SERVER_ALREADY_STARTED = "SERVER_ALREADY_STARTED";
177
178 /**
179 * An internal error occurred in the analysis server. Also see the server.error notification.
180 */
181 public static final String SERVER_ERROR = "SERVER_ERROR";
182
183 /**
184 * An "edit.sortMembers" request specified a FilePath which does not match a Dart file in an
185 * analysis root.
186 */
187 public static final String SORT_MEMBERS_INVALID_FILE = "SORT_MEMBERS_INVALID_FILE";
188
189 /**
190 * An "edit.sortMembers" request specified a Dart file that has scan or parse errors.
191 */
192 public static final String SORT_MEMBERS_PARSE_ERRORS = "SORT_MEMBERS_PARSE_ERRORS";
193
194 /**
195 * A request was received which the analysis server does not recognize, or cannot handle in its
196 * current configuration.
197 */
198 public static final String UNKNOWN_REQUEST = "UNKNOWN_REQUEST";
199
200 /**
201 * The analysis server was requested to perform an action which is not supported.
202 *
203 * This is a legacy error; it will be removed before the API reaches version 1.0.
204 */
205 public static final String UNSUPPORTED_FEATURE = "UNSUPPORTED_FEATURE";
206
207}