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
7
namespace
Ark::internal
8
{
9
enum class
ErrorKind
10
{
11
VM
,
12
Module
,
13
Scope
,
14
Type
,
15
Index
,
16
Arity
,
17
DivisionByZero
,
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
Ark::internal
Definition
Builtins.hpp:26
Ark::internal::errorKinds
constexpr std::array< std::string_view, 7 > errorKinds
Definition
ErrorKind.hpp:20
Ark::internal::ErrorKind
ErrorKind
Definition
ErrorKind.hpp:10
Ark::internal::ErrorKind::DivisionByZero
@ DivisionByZero
Ark::internal::ErrorKind::VM
@ VM
Ark::internal::ErrorKind::Scope
@ Scope
Ark::internal::ErrorKind::Arity
@ Arity
Ark::internal::ErrorKind::Index
@ Index
Ark::internal::ErrorKind::Type
@ Type
Ark::internal::ErrorKind::Module
@ Module
include
Ark
VM
ErrorKind.hpp
Generated on Wed Jan 15 2025 19:51:44 for ArkScript by
1.12.0