v8  3.14.5(node0.10.48)
V8 is Google's open source JavaScript engine
Message Class Reference

#include <v8.h>

Public Member Functions

Local< StringGet () const
 
Local< StringGetSourceLine () const
 
Handle< ValueGetScriptResourceName () const
 
Handle< ValueGetScriptData () const
 
Handle< StackTraceGetStackTrace () const
 
int GetLineNumber () const
 
int GetStartPosition () const
 
int GetEndPosition () const
 
int GetStartColumn () const
 
int GetEndColumn () const
 

Static Public Member Functions

static void PrintCurrentStackTrace (FILE *out)
 

Static Public Attributes

static const int kNoLineNumberInfo = 0
 
static const int kNoColumnInfo = 0
 

Detailed Description

An error message.

Definition at line 697 of file v8.h.

Member Function Documentation

Local<String> Get ( ) const
int GetEndColumn ( ) const

Returns the index within the line of the last character where the error occurred.

int GetEndPosition ( ) const

Returns the index within the script of the last character where the error occurred.

int GetLineNumber ( ) const

Returns the number, 1-based, of the line where the error occurred.

Handle<Value> GetScriptData ( ) const

Returns the resource data for the script from where the function causing the error originates.

Handle<Value> GetScriptResourceName ( ) const

Returns the resource name for the script from where the function causing the error originates.

Local<String> GetSourceLine ( ) const
Handle<StackTrace> GetStackTrace ( ) const

Exception stack trace. By default stack traces are not captured for uncaught exceptions. SetCaptureStackTraceForUncaughtExceptions allows to change this option.

int GetStartColumn ( ) const

Returns the index within the line of the first character where the error occurred.

int GetStartPosition ( ) const

Returns the index within the script of the first character where the error occurred.

static void PrintCurrentStackTrace ( FILE *  out)
static

Field Documentation

const int kNoColumnInfo = 0
static

Definition at line 754 of file v8.h.

const int kNoLineNumberInfo = 0
static

Definition at line 753 of file v8.h.


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