-
Notifications
You must be signed in to change notification settings - Fork 14
/
hh_error.def
117 lines (88 loc) · 2.63 KB
/
hh_error.def
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
/* This file is part of Hedgehog LISP.
* Copyright (C) 2003, 2004, 2005, 2006 Oliotalo Ltd.
* See file LICENSE.LGPL for pertinent licensing conditions.
*
* Author: Kenneth Oksanen <[email protected]>
*/
ERROR(HH_ERROR_EXPECT_CONS,
HH_PROGRAM_FATAL,
"Expected a (non-empty) list")
ERROR(HH_ERROR_EXPECT_CONS_OR_NIL,
HH_PROGRAM_FATAL,
"Expected a list or nil")
ERROR(HH_ERROR_EXPECT_STRING,
HH_PROGRAM_FATAL,
"Expected a string")
ERROR(HH_ERROR_EXPECT_STRING_LIST,
HH_PROGRAM_FATAL,
"Expected a list of strings")
ERROR(HH_ERROR_EXPECT_NONEMPTY_STRING,
HH_PROGRAM_FATAL,
"Expected a non-empty string")
ERROR(HH_ERROR_EXPECT_STRING_OR_INT,
HH_PROGRAM_FATAL,
"Expected a string or integer")
ERROR(HH_ERROR_EXPECT_INT,
HH_PROGRAM_FATAL,
"Expected an integer")
ERROR(HH_ERROR_EXPECT_SHORT,
HH_PROGRAM_FATAL,
"Expected a small integer")
ERROR(HH_ERROR_EXPECT_POSITIVE,
HH_PROGRAM_FATAL,
"Expected a positive integer")
ERROR(HH_ERROR_EXPECT_FN,
HH_PROGRAM_FATAL,
"Expected a function")
ERROR(HH_ERROR_EXPECT_SYMBOL,
HH_PROGRAM_FATAL,
"Expected a symbol")
ERROR(HH_ERROR_EXPECT_TUPLE,
HH_PROGRAM_FATAL,
"Expected a tuple (of sufficient width)")
ERROR(HH_ERROR_TOO_WIDE_TUPLE,
HH_PROGRAM_FATAL,
"Tuple too wide")
ERROR(HH_ERROR_EXPECT_AVL,
HH_PROGRAM_FATAL,
"Expected an AVL-tree node")
ERROR(HH_ERROR_PANIC,
HH_PROGRAM_FATAL,
"(panic ...) called")
ERROR(HH_ERROR_BAD_BASE,
HH_PROGRAM_FATAL,
"`itoa' or `atoi' given base outside range from 2 to 36")
ERROR(HH_ERROR_BAD_CHAR,
HH_PROGRAM_FATAL,
"`chr' given an integer less than zero or over 255")
ERROR(HH_ERROR_WRONG_ARGS,
HH_PROGRAM_FATAL,
"Incorrect number of arguments")
ERROR(HH_ERROR_UNCAUGHT_EXCEPTION,
HH_PROGRAM_FATAL,
"Uncaught exception")
ERROR(HH_ERROR_HEAP_FULL,
HH_PROGRAM_FATAL,
"Heap exhausted")
ERROR(HH_ERROR_MALLOC,
HH_SYSTEM_FATAL,
"Memory allocation failed")
ERROR(HH_ERROR_INITIAL_MALLOC,
HH_PROGRAM_NORUN,
"Initial memory allocation failed")
ERROR(HH_ERROR_MALLOC_MAY_FAIL,
HH_SYSTEM_WARNING,
"Non-essential memory allocation failed")
ERROR(HH_ERROR_PROGRAM_CORRUPT,
HH_PROGRAM_NORUN,
"Program corrupted")
ERROR(HH_ERROR_PROGRAM_WRONG_VERSION,
HH_PROGRAM_NORUN,
"Program of wrong version")
ERROR(HH_ERROR_PROGRAM_EXITED,
HH_PROGRAM_NORUN,
"Program exited")
ERROR(HH_ERROR_PROGRAM_DID_EXEC,
HH_PROGRAM_NORUN,
"Program replaced its byte code file with a new one")
#undef ERROR