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,
14 Scope,
15 Type,
16 Index,
17 Arity,
18 };
19
20 constexpr std::array<std::string_view, 7> errorKinds = {
21 "VMError",
22 "ModuleError",
23 "MutabilityError",
24 "ScopeError",
25 "TypeError",
26 "IndexError",
27 "ArityError"
28 };
29}
30
31#endif
A class to handle the VM scope more efficiently.
Definition: Scope.hpp:28
constexpr std::array< std::string_view, 7 > errorKinds
Definition: ErrorKind.hpp:20