v8  4.4.63(io.js3.3.1)
V8 is Google's open source JavaScript engine
Exception Class Reference

#include <v8.h>

Static Public Member Functions

static Local< ValueRangeError (Handle< String > message)
 
static Local< ValueReferenceError (Handle< String > message)
 
static Local< ValueSyntaxError (Handle< String > message)
 
static Local< ValueTypeError (Handle< String > message)
 
static Local< ValueError (Handle< String > message)
 
static Local< MessageCreateMessage (Handle< Value > exception)
 
static Local< StackTraceGetStackTrace (Handle< Value > exception)
 

Detailed Description

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

Definition at line 4635 of file v8.h.

Member Function Documentation

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

static Local<Value> Error ( Handle< String message)
static
static Local<StackTrace> GetStackTrace ( Handle< 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.

static Local<Value> RangeError ( Handle< String message)
static
static Local<Value> ReferenceError ( Handle< String message)
static
static Local<Value> SyntaxError ( Handle< String message)
static
static Local<Value> TypeError ( Handle< String message)
static

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