Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
VmServiceConst.java
Go to the documentation of this file.
1/*
2 * Copyright (c) 2015, the Dart project authors.
3 *
4 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not use this file except
5 * in compliance with the License. You may obtain a copy of the License at
6 *
7 * http://www.eclipse.org/legal/epl-v10.html
8 *
9 * Unless required by applicable law or agreed to in writing, software distributed under the License
10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
11 * or implied. See the License for the specific language governing permissions and limitations under
12 * the License.
13 */
14package org.dartlang.vm.service.internal;
15
16/**
17 * JSON constants used when communicating with the VM observatory service.
18 */
19public interface VmServiceConst {
20 static final String CODE = "code";
21 static final String ERROR = "error";
22 static final String EVENT = "event";
23 static final String ID = "id";
24 static final String MESSAGE = "message";
25 static final String METHOD = "method";
26 static final String PARAMS = "params";
27 static final String RESULT = "result";
28 static final String STREAM_ID = "streamId";
29 static final String TYPE = "type";
30 static final String JSONRPC = "jsonrpc";
31 static final String JSONRPC_VERSION = "2.0";
32 static final String DATA = "data";
33
34 /**
35 * Parse error Invalid JSON was received by the server.
36 * An error occurred on the server while parsing the JSON text.
37 */
38 static final int PARSE_ERROR = -32700;
39
40 /**
41 * Invalid Request The JSON sent is not a valid Request object.
42 */
43 static final int INVALID_REQUEST = -32600;
44
45 /**
46 * Method not found The method does not exist / is not available.
47 */
48 static final int METHOD_NOT_FOUND = -32601;
49
50 /**
51 * Invalid params Invalid method parameter(s).
52 */
53 static final int INVALID_PARAMS = -32602;
54
55 /**
56 * Server error Reserved for implementation-defined server-errors.
57 * -32000 to -32099
58 */
59 static final int SERVER_ERROR = -32000;
60}