v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::Exception Class Reference

#include <v8-exception.h>

Collaboration diagram for v8::Exception:

Static Public Member Functions

static Local< ValueRangeError (Local< String > message, Local< Value > options={})
 
static Local< ValueReferenceError (Local< String > message, Local< Value > options={})
 
static Local< ValueSyntaxError (Local< String > message, Local< Value > options={})
 
static Local< ValueTypeError (Local< String > message, Local< Value > options={})
 
static Local< ValueWasmCompileError (Local< String > message, Local< Value > options={})
 
static Local< ValueWasmLinkError (Local< String > message, Local< Value > options={})
 
static Local< ValueWasmRuntimeError (Local< String > message, Local< Value > options={})
 
static Local< ValueWasmSuspendError (Local< String > message, Local< Value > options={})
 
static Local< ValueError (Local< String > message, Local< Value > options={})
 
static Local< MessageCreateMessage (Isolate *isolate, Local< Value > exception)
 
static Local< StackTraceGetStackTrace (Local< Value > exception)
 
static Maybe< bool > CaptureStackTrace (Local< Context > context, Local< Object > object)
 

Detailed Description

Create new error objects by calling the corresponding error object constructor with the message.

Definition at line 32 of file v8-exception.h.

Member Function Documentation

◆ CaptureStackTrace()

Maybe< bool > v8::Exception::CaptureStackTrace ( Local< Context > context,
Local< Object > object )
static

Captures the current stack trace and attaches it to the given object in the form of stack property.

Definition at line 11162 of file api.cc.

Here is the call graph for this function:

◆ CreateMessage()

Local< Message > v8::Exception::CreateMessage ( Isolate * isolate,
Local< Value > exception )
static

Creates an error message for the given exception. Will try to reconstruct the original stack trace from the exception value, or capture the current stack trace if not available.

Definition at line 11142 of file api.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Error()

static Local< Value > v8::Exception::Error ( Local< String > message,
Local< Value > options = {} )
static
Here is the caller graph for this function:

◆ GetStackTrace()

Local< StackTrace > v8::Exception::GetStackTrace ( Local< Value > exception)
static

Returns the original stack trace that was captured at the creation time of a given exception, or an empty handle if not available.

Definition at line 11152 of file api.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RangeError()

static Local< Value > v8::Exception::RangeError ( Local< String > message,
Local< Value > options = {} )
static

◆ ReferenceError()

static Local< Value > v8::Exception::ReferenceError ( Local< String > message,
Local< Value > options = {} )
static

◆ SyntaxError()

static Local< Value > v8::Exception::SyntaxError ( Local< String > message,
Local< Value > options = {} )
static
Here is the caller graph for this function:

◆ TypeError()

static Local< Value > v8::Exception::TypeError ( Local< String > message,
Local< Value > options = {} )
static
Here is the caller graph for this function:

◆ WasmCompileError()

static Local< Value > v8::Exception::WasmCompileError ( Local< String > message,
Local< Value > options = {} )
static

◆ WasmLinkError()

static Local< Value > v8::Exception::WasmLinkError ( Local< String > message,
Local< Value > options = {} )
static

◆ WasmRuntimeError()

static Local< Value > v8::Exception::WasmRuntimeError ( Local< String > message,
Local< Value > options = {} )
static

◆ WasmSuspendError()

static Local< Value > v8::Exception::WasmSuspendError ( Local< String > message,
Local< Value > options = {} )
static

The documentation for this class was generated from the following files: