error.ha (639B)
1 // SPDX-License-Identifier: GPL-3.0-only 2 // (c) Hare authors <https://harelang.org> 3 4 use fs; 5 use hare::module; 6 use hare::parse; 7 use io; 8 use os::exec; 9 use path; 10 use strconv; 11 use cmd::hare::build; 12 13 type error = !( 14 exec::error | 15 fs::error | 16 io::error | 17 module::error | 18 path::error | 19 parse::error | 20 strconv::error | 21 unknown_arch | 22 unknown_output | 23 unknown_type | 24 output_exists | 25 output_failed | 26 invalid_namespace | 27 build::unknown_platform | 28 ); 29 30 type unknown_arch = !str; 31 32 type unknown_output = !void; 33 34 type unknown_type = !str; 35 36 type output_exists = !str; 37 38 type output_failed = !(str, fs::error); 39 40 type invalid_namespace = !str;