forked from rescript-lang/rescript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcaml_builtin_exceptions.js
76 lines (62 loc) · 1.34 KB
/
caml_builtin_exceptions.js
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
'use strict';
var out_of_memory = {
ExceptionID: 0,
Debug: "Out_of_memory"
};
var sys_error = {
ExceptionID: -1,
Debug: "Sys_error"
};
var failure = {
ExceptionID: -2,
Debug: "Failure"
};
var invalid_argument = {
ExceptionID: -3,
Debug: "Invalid_argument"
};
var end_of_file = {
ExceptionID: -4,
Debug: "End_of_file"
};
var division_by_zero = {
ExceptionID: -5,
Debug: "Division_by_zero"
};
var not_found = {
ExceptionID: -6,
Debug: "Not_found"
};
var match_failure = {
ExceptionID: -7,
Debug: "Match_failure"
};
var stack_overflow = {
ExceptionID: -8,
Debug: "Stack_overflow"
};
var sys_blocked_io = {
ExceptionID: -9,
Debug: "Sys_blocked_io"
};
var assert_failure = {
ExceptionID: -10,
Debug: "Assert_failure"
};
var undefined_recursive_module = {
ExceptionID: -11,
Debug: "Undefined_recursive_module"
};
exports.out_of_memory = out_of_memory;
exports.sys_error = sys_error;
exports.failure = failure;
exports.invalid_argument = invalid_argument;
exports.end_of_file = end_of_file;
exports.division_by_zero = division_by_zero;
exports.not_found = not_found;
exports.match_failure = match_failure;
exports.stack_overflow = stack_overflow;
exports.sys_blocked_io = sys_blocked_io;
exports.assert_failure = assert_failure;
exports.undefined_recursive_module = undefined_recursive_module;
/* No side effect */