OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 part of service; | 5 part of service; |
6 | 6 |
7 // Some value smaller than the object ring, so requesting a large array | 7 // Some value smaller than the object ring, so requesting a large array |
8 // doesn't result in an expired ref because the elements lapped it in the | 8 // doesn't result in an expired ref because the elements lapped it in the |
9 // object ring. | 9 // object ring. |
10 const int kDefaultFieldLimit = 100; | 10 const int kDefaultFieldLimit = 100; |
(...skipping 19 matching lines...) Expand all Loading... |
30 | 30 |
31 /// A ServerRpcException represents an error returned by the VM. | 31 /// A ServerRpcException represents an error returned by the VM. |
32 class ServerRpcException extends RpcException { | 32 class ServerRpcException extends RpcException { |
33 /// A list of well-known server error codes. | 33 /// A list of well-known server error codes. |
34 static const kParseError = -32700; | 34 static const kParseError = -32700; |
35 static const kInvalidRequest = -32600; | 35 static const kInvalidRequest = -32600; |
36 static const kMethodNotFound = -32601; | 36 static const kMethodNotFound = -32601; |
37 static const kInvalidParams = -32602; | 37 static const kInvalidParams = -32602; |
38 static const kInternalError = -32603; | 38 static const kInternalError = -32603; |
39 static const kFeatureDisabled = 100; | 39 static const kFeatureDisabled = 100; |
40 static const kVMMustBePaused = 101; | |
41 static const kCannotAddBreakpoint = 102; | 40 static const kCannotAddBreakpoint = 102; |
42 static const kStreamAlreadySubscribed = 103; | 41 static const kStreamAlreadySubscribed = 103; |
43 static const kStreamNotSubscribed = 104; | 42 static const kStreamNotSubscribed = 104; |
44 static const kIsolateMustBeRunnable = 105; | 43 static const kIsolateMustBeRunnable = 105; |
| 44 static const kIsolateMustBePaused = 106; |
45 | 45 |
46 int code; | 46 int code; |
47 Map data; | 47 Map data; |
48 | 48 |
49 static _getMessage(Map errorMap) { | 49 static _getMessage(Map errorMap) { |
50 Map data = errorMap['data']; | 50 Map data = errorMap['data']; |
51 if (data != null && data['details'] != null) { | 51 if (data != null && data['details'] != null) { |
52 return data['details']; | 52 return data['details']; |
53 } else { | 53 } else { |
54 return errorMap['message']; | 54 return errorMap['message']; |
(...skipping 3992 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4047 var v = list[i]; | 4047 var v = list[i]; |
4048 if ((v is ObservableMap) && _isServiceMap(v)) { | 4048 if ((v is ObservableMap) && _isServiceMap(v)) { |
4049 list[i] = owner.getFromMap(v); | 4049 list[i] = owner.getFromMap(v); |
4050 } else if (v is ObservableList) { | 4050 } else if (v is ObservableList) { |
4051 _upgradeObservableList(v, owner); | 4051 _upgradeObservableList(v, owner); |
4052 } else if (v is ObservableMap) { | 4052 } else if (v is ObservableMap) { |
4053 _upgradeObservableMap(v, owner); | 4053 _upgradeObservableMap(v, owner); |
4054 } | 4054 } |
4055 } | 4055 } |
4056 } | 4056 } |
OLD | NEW |