RequestErrorCode class
RequestErrorCode
enum { CONTENT_MODIFIED DEBUG_PORT_COULD_NOT_BE_OPENED FILE_NOT_ANALYZED FLUTTER_GET_WIDGET_DESCRIPTION_CONTENT_MODIFIED FLUTTER_GET_WIDGET_DESCRIPTION_NO_WIDGET FLUTTER_SET_WIDGET_PROPERTY_VALUE_INVALID_EXPRESSION FLUTTER_SET_WIDGET_PROPERTY_VALUE_INVALID_ID FLUTTER_SET_WIDGET_PROPERTY_VALUE_IS_REQUIRED FORMAT_INVALID_FILE FORMAT_WITH_ERRORS GET_ERRORS_INVALID_FILE GET_FIXES_INVALID_FILE GET_IMPORTED_ELEMENTS_INVALID_FILE GET_NAVIGATION_INVALID_FILE GET_REACHABLE_SOURCES_INVALID_FILE GET_SIGNATURE_INVALID_FILE GET_SIGNATURE_INVALID_OFFSET GET_SIGNATURE_UNKNOWN_FUNCTION IMPORT_ELEMENTS_INVALID_FILE INVALID_ANALYSIS_ROOT INVALID_EXECUTION_CONTEXT INVALID_FILE_PATH_FORMAT INVALID_OVERLAY_CHANGE INVALID_PARAMETER INVALID_REQUEST ORGANIZE_DIRECTIVES_ERROR REFACTORING_REQUEST_CANCELLED SERVER_ALREADY_STARTED SERVER_ERROR SORT_MEMBERS_INVALID_FILE SORT_MEMBERS_PARSE_ERRORS UNKNOWN_REQUEST UNSUPPORTED_FEATURE }
Clients may not extend, implement or mix-in this class.
- Implemented types
Constructors
- RequestErrorCode(String name)
-
factory
- RequestErrorCode.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object? json)
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
The name of the enumerated value. This should match the name of the static
getter which provides access to this enumerated value.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → String -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- CONTENT_MODIFIED → const 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.
- DEBUG_PORT_COULD_NOT_BE_OPENED → const RequestErrorCode
- The server was unable to open a port for the diagnostic server.
- FILE_NOT_ANALYZED → const RequestErrorCode
- 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.
- FLUTTER_GET_WIDGET_DESCRIPTION_CONTENT_MODIFIED → const RequestErrorCode
- A file was change while widget descriptions were being computed.
- FLUTTER_GET_WIDGET_DESCRIPTION_NO_WIDGET → const RequestErrorCode
- The given location does not have a supported widget.
- FLUTTER_SET_WIDGET_PROPERTY_VALUE_INVALID_EXPRESSION → const RequestErrorCode
- The given property expression is invalid, e.g. has a syntax error.
- FLUTTER_SET_WIDGET_PROPERTY_VALUE_INVALID_ID → const RequestErrorCode
- The given property identifier is not valid. It might have never been valid, or a change to code invalidated it, or its TTL was exceeded.
- FLUTTER_SET_WIDGET_PROPERTY_VALUE_IS_REQUIRED → const RequestErrorCode
- The value of the property cannot be removed, for example because the corresponding constructor argument is required, and the server does not know what default value to use.
- FORMAT_INVALID_FILE → const RequestErrorCode
- An "edit.format" request specified a FilePath which does not match a Dart file in an analysis root.
- FORMAT_WITH_ERRORS → const RequestErrorCode
- An "edit.format" request specified a file that contains syntax errors.
- GET_ERRORS_INVALID_FILE → const RequestErrorCode
- An "analysis.getErrors" request specified a FilePath which does not match a file currently subject to analysis.
- GET_FIXES_INVALID_FILE → const RequestErrorCode
- An "edit.getFixes" request specified a FilePath which does not match a file currently subject to analysis.
- GET_IMPORTED_ELEMENTS_INVALID_FILE → const RequestErrorCode
- An "analysis.getImportedElements" request specified a FilePath that does not match a file currently subject to analysis.
- GET_NAVIGATION_INVALID_FILE → const RequestErrorCode
- An "analysis.getNavigation" request specified a FilePath which does not match a file currently subject to analysis.
- GET_REACHABLE_SOURCES_INVALID_FILE → const RequestErrorCode
- An "analysis.getReachableSources" request specified a FilePath which does not match a file currently subject to analysis.
- GET_SIGNATURE_INVALID_FILE → const RequestErrorCode
- An "analysis.getSignature" request specified a FilePath which does not match a file currently subject to analysis.
- GET_SIGNATURE_INVALID_OFFSET → const RequestErrorCode
- An "analysis.getSignature" request specified an offset which is not a valid location within for the contents of the file specified FilePath.
- GET_SIGNATURE_UNKNOWN_FUNCTION → const RequestErrorCode
- An "analysis.getSignature" request specified an offset that could not be matched to a function call.
- IMPORT_ELEMENTS_INVALID_FILE → const RequestErrorCode
- An "edit.importElements" request specified a FilePath that does not match a file currently subject to analysis.
- INVALID_ANALYSIS_ROOT → const RequestErrorCode
- A path passed as an argument to a request (such as analysis.reanalyze) is required to be an analysis root, but isn't.
- INVALID_EXECUTION_CONTEXT → const RequestErrorCode
- The context root used to create an execution context does not exist.
- INVALID_FILE_PATH_FORMAT → const RequestErrorCode
- The format of the given file path is invalid, e.g. is not absolute and normalized.
- INVALID_OVERLAY_CHANGE → const RequestErrorCode
- 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.
- INVALID_PARAMETER → const RequestErrorCode
- One of the method parameters was invalid.
- INVALID_REQUEST → const RequestErrorCode
- A malformed request was received.
- ORGANIZE_DIRECTIVES_ERROR → const RequestErrorCode
- An "edit.organizeDirectives" request specified a Dart file that cannot be analyzed. The reason is described in the message.
- REFACTORING_REQUEST_CANCELLED → const RequestErrorCode
- Another refactoring request was received during processing of this one.
- SERVER_ALREADY_STARTED → const RequestErrorCode
- The analysis server has already been started (and hence won't accept new connections).
- SERVER_ERROR → const RequestErrorCode
- An internal error occurred in the analysis server. Also see the server.error notification.
- SORT_MEMBERS_INVALID_FILE → const RequestErrorCode
- An "edit.sortMembers" request specified a FilePath which does not match a Dart file in an analysis root.
- SORT_MEMBERS_PARSE_ERRORS → const RequestErrorCode
- An "edit.sortMembers" request specified a Dart file that has scan or parse errors.
- UNKNOWN_REQUEST → const RequestErrorCode
- A request was received which the analysis server does not recognize, or cannot handle in its current configuration.
- UNSUPPORTED_FEATURE → const RequestErrorCode
- The analysis server was requested to perform an action which is not supported.
-
VALUES
→ const List<
RequestErrorCode> - A list containing all of the enum values that are defined.