RequestErrorCode constructor
RequestErrorCode(
- String name
Implementation
factory RequestErrorCode(String name) {
switch (name) {
case 'CONTENT_MODIFIED':
return CONTENT_MODIFIED;
case 'DEBUG_PORT_COULD_NOT_BE_OPENED':
return DEBUG_PORT_COULD_NOT_BE_OPENED;
case 'FILE_NOT_ANALYZED':
return FILE_NOT_ANALYZED;
case 'FLUTTER_GET_WIDGET_DESCRIPTION_CONTENT_MODIFIED':
return FLUTTER_GET_WIDGET_DESCRIPTION_CONTENT_MODIFIED;
case 'FLUTTER_GET_WIDGET_DESCRIPTION_NO_WIDGET':
return FLUTTER_GET_WIDGET_DESCRIPTION_NO_WIDGET;
case 'FLUTTER_SET_WIDGET_PROPERTY_VALUE_INVALID_EXPRESSION':
return FLUTTER_SET_WIDGET_PROPERTY_VALUE_INVALID_EXPRESSION;
case 'FLUTTER_SET_WIDGET_PROPERTY_VALUE_INVALID_ID':
return FLUTTER_SET_WIDGET_PROPERTY_VALUE_INVALID_ID;
case 'FLUTTER_SET_WIDGET_PROPERTY_VALUE_IS_REQUIRED':
return FLUTTER_SET_WIDGET_PROPERTY_VALUE_IS_REQUIRED;
case 'FORMAT_INVALID_FILE':
return FORMAT_INVALID_FILE;
case 'FORMAT_WITH_ERRORS':
return FORMAT_WITH_ERRORS;
case 'GET_ERRORS_INVALID_FILE':
return GET_ERRORS_INVALID_FILE;
case 'GET_FIXES_INVALID_FILE':
return GET_FIXES_INVALID_FILE;
case 'GET_IMPORTED_ELEMENTS_INVALID_FILE':
return GET_IMPORTED_ELEMENTS_INVALID_FILE;
case 'GET_NAVIGATION_INVALID_FILE':
return GET_NAVIGATION_INVALID_FILE;
case 'GET_REACHABLE_SOURCES_INVALID_FILE':
return GET_REACHABLE_SOURCES_INVALID_FILE;
case 'GET_SIGNATURE_INVALID_FILE':
return GET_SIGNATURE_INVALID_FILE;
case 'GET_SIGNATURE_INVALID_OFFSET':
return GET_SIGNATURE_INVALID_OFFSET;
case 'GET_SIGNATURE_UNKNOWN_FUNCTION':
return GET_SIGNATURE_UNKNOWN_FUNCTION;
case 'IMPORT_ELEMENTS_INVALID_FILE':
return IMPORT_ELEMENTS_INVALID_FILE;
case 'INVALID_ANALYSIS_ROOT':
return INVALID_ANALYSIS_ROOT;
case 'INVALID_EXECUTION_CONTEXT':
return INVALID_EXECUTION_CONTEXT;
case 'INVALID_FILE_PATH_FORMAT':
return INVALID_FILE_PATH_FORMAT;
case 'INVALID_OVERLAY_CHANGE':
return INVALID_OVERLAY_CHANGE;
case 'INVALID_PARAMETER':
return INVALID_PARAMETER;
case 'INVALID_REQUEST':
return INVALID_REQUEST;
case 'ORGANIZE_DIRECTIVES_ERROR':
return ORGANIZE_DIRECTIVES_ERROR;
case 'REFACTORING_REQUEST_CANCELLED':
return REFACTORING_REQUEST_CANCELLED;
case 'SERVER_ALREADY_STARTED':
return SERVER_ALREADY_STARTED;
case 'SERVER_ERROR':
return SERVER_ERROR;
case 'SORT_MEMBERS_INVALID_FILE':
return SORT_MEMBERS_INVALID_FILE;
case 'SORT_MEMBERS_PARSE_ERRORS':
return SORT_MEMBERS_PARSE_ERRORS;
case 'UNKNOWN_REQUEST':
return UNKNOWN_REQUEST;
case 'UNSUPPORTED_FEATURE':
return UNSUPPORTED_FEATURE;
}
throw Exception('Illegal enum value: $name');
}