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

Unified Diff: runtime/observatory/lib/src/service/object.dart

Issue 1164463005: Rename some service protocol errors. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: sync Created 5 years, 7 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
« no previous file with comments | « runtime/observatory/lib/src/elements/script_inset.dart ('k') | runtime/vm/json_stream.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/observatory/lib/src/service/object.dart
diff --git a/runtime/observatory/lib/src/service/object.dart b/runtime/observatory/lib/src/service/object.dart
index cac799dbfe9fd5bfa055d59c828a60859cf609fa..148354d0a9afb18f669658a7af55bc8ebe13c431 100644
--- a/runtime/observatory/lib/src/service/object.dart
+++ b/runtime/observatory/lib/src/service/object.dart
@@ -20,10 +20,9 @@ class ServerRpcException extends RpcException {
static const kMethodNotFound = -32601;
static const kInvalidParams = -32602;
static const kInternalError = -32603;
- static const kVMMustBePaused = 100;
- static const kNoBreakAtLine = 101;
- static const kNoBreakAtFunction = 102;
- static const kProfilingDisabled = 200;
+ static const kFeatureDisabled = 100;
+ static const kVMMustBePaused = 101;
+ static const kCannotAddBreakpoint = 102;
int code;
Map data;
@@ -1163,7 +1162,7 @@ class Isolate extends ServiceObjectOwner with Coverage {
}
return bpt;
} on ServerRpcException catch(e) {
- if (e.code == ServerRpcException.kNoBreakAtLine) {
+ if (e.code == ServerRpcException.kCannotAddBreakpoint) {
// Unable to set a breakpoint at the desired line.
script.getLine(line).possibleBpt = false;
}
« no previous file with comments | « runtime/observatory/lib/src/elements/script_inset.dart ('k') | runtime/vm/json_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698