Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(96)

Unified Diff: pkg/analysis_server/lib/plugin/protocol/protocol.dart

Issue 2703033002: Add a diagnostic.getServerPort analysis server request. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/analysis_server/lib/plugin/protocol/protocol.dart
diff --git a/pkg/analysis_server/lib/plugin/protocol/protocol.dart b/pkg/analysis_server/lib/plugin/protocol/protocol.dart
index 49e19c16fbc0aa3b245e8664011fe8ad12398803..bec501d006e2e0020796f19f02020a85ac7be3b7 100644
--- a/pkg/analysis_server/lib/plugin/protocol/protocol.dart
+++ b/pkg/analysis_server/lib/plugin/protocol/protocol.dart
@@ -543,6 +543,15 @@ class Response {
* Initialize a newly created instance to represent an error condition caused
* by a [request] that cannot be handled by any known handlers.
*/
+ Response.errorHandlingRequest(Request request, dynamic error)
+ : this(request.id,
+ error: new RequestError(
+ RequestErrorCode.ERROR_HANDLING_REQUEST, '$error'));
+
+ /**
+ * Initialize a newly created instance to represent an error condition caused
+ * by a [request] that cannot be handled by any known handlers.
+ */
Response.unknownRequest(Request request)
: this(request.id,
error: new RequestError(

Powered by Google App Engine
This is Rietveld 408576698