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

Unified Diff: pkg/analysis_server/doc/api.html

Issue 532403002: Fix error handling in analysis.getError. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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/doc/api.html
diff --git a/pkg/analysis_server/doc/api.html b/pkg/analysis_server/doc/api.html
index a1c187bdcf2ecf0e4003ab934396150d00057f05..8ae33b8a823994449116f6207e44b2bf947dc0c5 100644
--- a/pkg/analysis_server/doc/api.html
+++ b/pkg/analysis_server/doc/api.html
@@ -368,6 +368,13 @@ dt.typeDefinition {
should use the information provided by the 'analysis.errors'
notification.
</p>
+ <p>
+ If a request is made for a file which does not exist, or
+ which is not currently subject to analysis (e.g. because it
+ is not associated with any analysis root specified to
+ analysis.setAnalysisRoots), an error of type
+ GET_ERRORS_INVALID_FILE will be generated.
+ </p>
<h4>Parameters</h4><dl><dt class="field"><b><i>file ( <a href="#type_FilePath">FilePath</a> )</i></b></dt><dd>
@@ -2578,17 +2585,13 @@ dt.typeDefinition {
execution of the server.
</p>
- <dl><dt class="value">GET_ERRORS_ERROR</dt><dd>
+ <dl><dt class="value">GET_ERRORS_INVALID_FILE</dt><dd>
<p>
- An error occurred during the processing of an
- "analysis.getErrors" request.
+ An "analysis.getErrors" request specified a FilePath
+ which does not match a file currently subject to
+ analysis.
</p>
- <p>
- This is a legacy error; it will be removed before the
- API reaches version 1.0.
- </p>
-
</dd><dt class="value">INVALID_PARAMETER</dt><dd>
<p>

Powered by Google App Engine
This is Rietveld 408576698