v8  5.1.281 (node 6.17.1)
V8 is Google's open source JavaScript engine
Exception Class Reference

#include <v8.h>

Public Member Functions

 V8_DEPRECATED ("Use version with an Isolate*", static Local< Message > CreateMessage(Local< Value > exception))
 

Static Public Member Functions

static Local< ValueRangeError (Local< String > message)
 
static Local< ValueReferenceError (Local< String > message)
 
static Local< ValueSyntaxError (Local< String > message)
 
static Local< ValueTypeError (Local< String > message)
 
static Local< ValueError (Local< String > message)
 
static Local< MessageCreateMessage (Isolate *isolate, Local< Value > exception)
 
static Local< StackTraceGetStackTrace (Local< Value > exception)
 

Detailed Description

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

Definition at line 4971 of file v8.h.

Member Function Documentation

◆ CreateMessage()

static Local<Message> 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.

◆ Error()

static Local<Value> Error ( Local< String message)
static

◆ GetStackTrace()

static Local<StackTrace> 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.

◆ RangeError()

static Local<Value> RangeError ( Local< String message)
static

◆ ReferenceError()

static Local<Value> ReferenceError ( Local< String message)
static

◆ SyntaxError()

static Local<Value> SyntaxError ( Local< String message)
static

◆ TypeError()

static Local<Value> TypeError ( Local< String message)
static

◆ V8_DEPRECATED()

V8_DEPRECATED ( "Use version with an Isolate*"  ,
static Local< Message >   CreateMessageLocal< Value > exception 
)

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