5#ifndef INCLUDE_V8_EXCEPTION_H_
6#define INCLUDE_V8_EXCEPTION_H_
111 exception_(exception),
112 interface_name_(interface_name),
113 property_name_(property_name),
114 exception_context_(exception_context) {}
121 return exception_context_;
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);
274 return js_stack_comparable_address_;
277 void ResetInternal();
279 internal::Isolate* i_isolate_;
284 bool is_verbose_ : 1;
285 bool can_continue_ : 1;
286 bool capture_message_ : 1;
289 friend class internal::Isolate;
290 friend class internal::ThreadLocalTop;
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
Local< v8::Message > Message() const
friend class internal::Isolate
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)
void(*)(ExceptionPropagationMessage message) ExceptionPropagationCallback
#define V8_WARN_UNUSED_RESULT