mirror of
https://github.com/kanaka/mal.git
synced 2024-09-11 13:55:55 +03:00
21 lines
382 B
Zig
21 lines
382 B
Zig
|
pub const MalError = error {
|
||
|
SystemError,
|
||
|
EnvLookupError,
|
||
|
ApplyError,
|
||
|
EvalError,
|
||
|
KeyError,
|
||
|
ThrownError,
|
||
|
TypeError,
|
||
|
ArgError,
|
||
|
ReaderUnmatchedParen,
|
||
|
ReaderUnmatchedString,
|
||
|
ReaderBadHashmap,
|
||
|
OutOfBounds,
|
||
|
Overflow,
|
||
|
DivisionByZero,
|
||
|
};
|
||
|
|
||
|
pub fn error_string_repr(mal_error: MalError) []const u8 {
|
||
|
return @errorName(mal_error);
|
||
|
}
|