OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // BSD-style license that can be found in the LICENSE file. | |
4 | |
5 /// Error codes defined in the JSON-RPC 2.0 specificiation. | |
Bob Nystrom
2014/03/20 18:25:58
Hyperlink?
nweiz
2014/03/20 22:55:41
Done.
| |
6 /// | |
7 /// These codes are generally used for protocol-level communication. Most of | |
8 /// them shouldn't be used by the application. Those that should have | |
9 /// convenience constructors in [RpcException]. | |
10 library json_rpc_2.error_code; | |
11 | |
12 /// An error code indicating that invalid JSON was received by the server. | |
13 const PARSE_ERROR = -32700; | |
14 | |
15 /// An error code indicating that the request JSON was invalid according to the | |
16 /// JSON-RPC 2.0 spec. | |
17 const INVALID_REQUEST = -32600; | |
18 | |
19 /// An error code indicating that the requested method does not exist or is | |
20 /// unavailable. | |
21 const METHOD_NOT_FOUND = -32601; | |
22 | |
23 /// An error code indicating that the request paramaters are invalid for the | |
24 /// requested method. | |
25 const INVALID_PARAMS = -32602; | |
26 | |
27 /// An internal JSON-RPC error. | |
28 const INTERNAL_ERROR = -32603; | |
29 | |
30 /// An unexpected error occurred on the server. | |
31 /// | |
32 /// The spec reserves the range from -32000 to -32099 for implementation-defined | |
33 /// server exceptions, but for now we only use one of those values. | |
34 const SERVER_ERROR = -32000; | |
OLD | NEW |