5#ifndef INCLUDE_V8_EXCEPTION_H_
6#define INCLUDE_V8_EXCEPTION_H_
29
30
31
53
54
55
56
60
61
62
66
67
68
74
75
76
77
100
101
102
103
114 exception_context_(exception_context) {}
121 return exception_context_;
132using ExceptionPropagationCallback =
136
137
141
142
143
144
148
149
153
154
158
159
160
161
162
163
164
168
169
170
171
172
173
174
175
176
177
178
182
183
184
185
186
187
191
192
193
197
198
199
204
205
206
207
212
213
214
218
219
220
221
222
223
224
225
226
230
231
232
233
234
235
236
240
241
245
246
247
248
257 void* operator
new(size_t size);
258 void* operator
new[](size_t size);
259 void operator
delete(
void*, size_t);
260 void operator
delete[](
void*, size_t);
263
264
265
266
267
268
269
270
271
272
274 return js_stack_comparable_address_;
277 void ResetInternal();
284 bool is_verbose_ : 1;
285 bool can_continue_ : 1;
286 bool capture_message_ : 1;
static Local< Value > WasmCompileError(Local< String > message, Local< Value > options={})
static Local< Value > WasmLinkError(Local< String > message, Local< Value > options={})
static Local< Value > WasmSuspendError(Local< String > message, Local< Value > options={})
static Local< Value > SyntaxError(Local< String > message, Local< Value > options={})
static Local< Value > WasmRuntimeError(Local< String > message, Local< Value > options={})
static Local< Value > TypeError(Local< String > message, Local< Value > options={})
static Local< Message > CreateMessage(Isolate *isolate, Local< Value > exception)
static Local< StackTrace > GetStackTrace(Local< Value > exception)
static Local< Value > Error(Local< String > message, Local< Value > options={})
static Local< Value > RangeError(Local< String > message, Local< Value > options={})
static Maybe< bool > CaptureStackTrace(Local< Context > context, Local< Object > object)
static Local< Value > ReferenceError(Local< String > message, Local< Value > options={})
V8_INLINE ExceptionContext GetExceptionContext() const
V8_INLINE Local< String > GetPropertyName() const
V8_INLINE Isolate * GetIsolate() const
V8_INLINE Local< String > GetInterfaceName() const
ExceptionPropagationMessage(v8::Isolate *isolate, Local< Object > exception, Local< String > interface_name, Local< String > property_name, ExceptionContext exception_context)
V8_INLINE Local< Object > GetException() const
Local< Value > Exception() const
TryCatch(const TryCatch &)=delete
void operator=(const TryCatch &)=delete
void SetCaptureMessage(bool value)
static V8_WARN_UNUSED_RESULT MaybeLocal< Value > StackTrace(Local< Context > context, Local< Value > exception)
V8_WARN_UNUSED_RESULT MaybeLocal< Value > StackTrace(Local< Context > context) const
bool HasTerminated() const
void SetVerbose(bool value)
TryCatch(Isolate *isolate)
#define V8_WARN_UNUSED_RESULT