]> gitweb.factorcode.org Git - factor.git/blob - vm/errors.hpp
Merge branch 'master' of git://factorcode.org/git/factor
[factor.git] / vm / errors.hpp
1 namespace factor
2 {
3
4 /* Runtime errors */
5 enum vm_error_type
6 {
7         ERROR_EXPIRED = 0,
8         ERROR_IO,
9         ERROR_NOT_IMPLEMENTED,
10         ERROR_TYPE,
11         ERROR_DIVIDE_BY_ZERO,
12         ERROR_SIGNAL,
13         ERROR_ARRAY_SIZE,
14         ERROR_C_STRING,
15         ERROR_FFI,
16         ERROR_HEAP_SCAN,
17         ERROR_UNDEFINED_SYMBOL,
18         ERROR_DS_UNDERFLOW,
19         ERROR_DS_OVERFLOW,
20         ERROR_RS_UNDERFLOW,
21         ERROR_RS_OVERFLOW,
22         ERROR_MEMORY,
23         ERROR_FP_TRAP,
24 };
25
26 void fatal_error(const char *msg, cell tagged);
27 void critical_error(const char *msg, cell tagged);
28 void out_of_memory();
29 void memory_signal_handler_impl();
30 void fp_signal_handler_impl();
31 void misc_signal_handler_impl();
32
33 }