ArkScript
A small, fast, functional and scripting language for video games
ErrorKind.hpp
Go to the documentation of this file.
1#ifndef ARK_VM_ERRORKIND_HPP
2#define ARK_VM_ERRORKIND_HPP
3
4#include <array>
5#include <string_view>
6
7namespace Ark::internal
8{
9 enum class ErrorKind
10 {
11 VM,
12 Module,
13 Scope,
14 Type,
15 Index,
16 Arity,
18 };
19
20 constexpr std::array<std::string_view, 7> errorKinds = {
21 "VMError",
22 "ModuleError",
23 "ScopeError",
24 "TypeError",
25 "IndexError",
26 "ArityError",
27 "DivisionByZero"
28 };
29}
30
31#endif
constexpr std::array< std::string_view, 7 > errorKinds
Definition ErrorKind.hpp:20