-
Notifications
You must be signed in to change notification settings - Fork 2
/
json_parser_errors.ml
44 lines (41 loc) · 1.2 KB
/
json_parser_errors.ml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
(* This file was auto-generated based on "json_parser.messages". *)
(* Please note that the function [message] can raise [Not_found]. *)
let message =
fun s ->
match s with
| 0 ->
"Json top level value must be an oject\n"
| 2 ->
"Missing field value\n"
| 34 ->
"Missing field separartor\n"
| 35 ->
"Missing field key or value\n"
| 3 ->
"Invalid list\n"
| 32 ->
"Expecting number before end of input\n"
| 6 ->
"Unexpected arithmetic operation on non number value\n"
| 23 ->
"Missing list separator between values\n"
| 24 ->
"Trailing separator in list\n"
| 8 ->
"Unclosed list in object field\n"
| 19 ->
"Unexpected arithmetic operation applied to non number value\n"
| 10 ->
"Unexpected arithmetic operation applied to non number value inside list\n"
| 12 ->
"Unclosed list inside object\n"
| 13 ->
"Unclosed object inside list\n"
| 28 ->
"Unexpected list termination in object key position\n"
| 1 ->
"Unexpected list in object key\n"
| 38 ->
"Unexpected value after end of object\n"
| _ ->
raise Not_found