Molybden API
Loading...
Searching...
No Matches
js_error.hpp
1// Copyright (c) 2000-2024 TeamDev. All rights reserved.
2// TeamDev PROPRIETARY and CONFIDENTIAL.
3// Use is subject to license terms.
4
5#ifndef MOLYBDEN_JS_ERROR_HPP
6#define MOLYBDEN_JS_ERROR_HPP
7
8#include <string>
9
10namespace molybden {
11
15enum class ExceptionType {
16 kUnspecified,
17
21 kTypeNoError,
22 kIndexSizeError,
23 kHierarchyRequestError,
24 kWrongDocumentError,
25 kInvalidCharacterError,
26 kNoModificationAllowedError,
27 kNotFoundError,
28 kNotSupportedError,
29 kInUseAttributeError,
30 kInvalidStateError,
31 kSyntaxError,
32 kInvalidModificationError,
33 kNamespaceError,
34 kInvalidAccessError,
35 kTypeMismatchError,
36 kSecurityError,
37 kNetworkError,
38 kAbortError,
39 kUrlMismatchError,
40 kQuotaExceededError,
41 kTimeoutError,
42 kInvalidNodeTypeError,
43 kDataCloneError,
44
48 kEncodingError,
49 kNotReadableError,
50 kUnknownError,
51 kConstraintError,
52 kDataError,
53 kTransactionInactiveError,
54 kReadonlyError,
55 kVersionError,
56 kOperationError,
57 kNotAllowedError,
58
62 kPathExistsError,
63 kPermissionDeniedError,
64
68 kEcmaError,
69 kRangeError,
70 kReferenceError,
71 kEcmaSyntaxError,
72 kTypeError,
73
77 kV8Exception,
78};
79
83struct JsError {
87 std::string message;
88
92 ExceptionType type;
93};
94
95} // namespace molybden
96
97#endif // MOLYBDEN_JS_ERROR_HPP
Represents a JavaScript exception.
Definition js_error.hpp:83
ExceptionType type
The type of the exception.
Definition js_error.hpp:92
std::string message
The message of the exception.
Definition js_error.hpp:87