5#ifndef INCLUDE_V8_EXCEPTION_H_
6#define INCLUDE_V8_EXCEPTION_H_
109 exception_(exception),
110 interface_name_(interface_name),
111 property_name_(property_name),
112 exception_context_(exception_context) {}
119 return exception_context_;
255 void*
operator new(
size_t size);
256 void*
operator new[](
size_t size);
257 void operator delete(
void*, size_t);
258 void operator delete[](
void*, size_t);
272 return js_stack_comparable_address_;
275 void ResetInternal();
277 internal::Isolate* i_isolate_;
282 bool is_verbose_ : 1;
283 bool can_continue_ : 1;
284 bool capture_message_ : 1;
287 friend class internal::Isolate;
288 friend class internal::ThreadLocalTop;
Definition: v8-exception.h:102
Local< String > GetPropertyName() const
Definition: v8-exception.h:117
Isolate * GetIsolate() const
Definition: v8-exception.h:114
Local< Object > GetException() const
Definition: v8-exception.h:115
Local< String > GetInterfaceName() const
Definition: v8-exception.h:116
ExceptionContext GetExceptionContext() const
Definition: v8-exception.h:118
ExceptionPropagationMessage(v8::Isolate *isolate, Local< Object > exception, Local< String > interface_name, Local< String > property_name, ExceptionContext exception_context)
Definition: v8-exception.h:104
Definition: v8-exception.h:32
static Maybe< bool > CaptureStackTrace(Local< Context > context, Local< Object > object)
static Local< Message > CreateMessage(Isolate *isolate, Local< Value > exception)
static Local< StackTrace > GetStackTrace(Local< Value > exception)
static Local< Value > RangeError(Local< String > message, Local< Value > options={})
static Local< Value > TypeError(Local< String > message, Local< Value > options={})
static Local< Value > WasmRuntimeError(Local< String > message, Local< Value > options={})
static Local< Value > ReferenceError(Local< String > message, Local< Value > options={})
static Local< Value > WasmCompileError(Local< String > message, Local< Value > options={})
static Local< Value > SyntaxError(Local< String > message, Local< Value > options={})
static Local< Value > WasmLinkError(Local< String > message, Local< Value > options={})
static Local< Value > Error(Local< String > message, Local< Value > options={})
Definition: v8-isolate.h:212
Definition: v8-local-handle.h:266
Definition: v8-local-handle.h:632
Definition: v8-maybe.h:32
Definition: v8-exception.h:136
void SetVerbose(bool value)
Local< v8::Message > Message() const
bool HasTerminated() const
MaybeLocal< Value > StackTrace(Local< Context > context) const
void SetCaptureMessage(bool value)
TryCatch(Isolate *isolate)
TryCatch(const TryCatch &)=delete
static MaybeLocal< Value > StackTrace(Local< Context > context, Local< Value > exception)
void operator=(const TryCatch &)=delete
Local< Value > Exception() const
uintptr_t Address
Definition: v8-internal.h:51
Definition: libplatform.h:15
void(*)(ExceptionPropagationMessage message) ExceptionPropagationCallback
Definition: v8-exception.h:131
ExceptionContext
Definition: v8-exception.h:76
#define V8_EXPORT
Definition: v8config.h:793
#define V8_INLINE
Definition: v8config.h:499
#define V8_WARN_UNUSED_RESULT
Definition: v8config.h:660