v8  3.28.71 (node 0.12.18)
V8 is Google's open source JavaScript engine
Message Class Reference

#include <v8.h>

Public Member Functions

Local< StringGet () const
 
Local< StringGetSourceLine () const
 
ScriptOrigin GetScriptOrigin () const
 
Handle< ValueGetScriptResourceName () const
 
Handle< StackTraceGetStackTrace () const
 
int GetLineNumber () const
 
int GetStartPosition () const
 
int GetEndPosition () const
 
int GetStartColumn () const
 
int GetEndColumn () const
 
bool IsSharedCrossOrigin () const
 

Static Public Member Functions

static void PrintCurrentStackTrace (Isolate *isolate, FILE *out)
 

Static Public Attributes

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

Detailed Description

An error message.

Definition at line 1138 of file v8.h.

Member Function Documentation

◆ Get()

Local<String> Get ( ) const

◆ GetEndColumn()

int GetEndColumn ( ) const

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

◆ GetEndPosition()

int GetEndPosition ( ) const

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

◆ GetLineNumber()

int GetLineNumber ( ) const

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

◆ GetScriptOrigin()

ScriptOrigin GetScriptOrigin ( ) const

Returns the origin for the script from where the function causing the error originates.

◆ GetScriptResourceName()

Handle<Value> GetScriptResourceName ( ) const

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

◆ GetSourceLine()

Local<String> GetSourceLine ( ) const

◆ GetStackTrace()

Handle<StackTrace> GetStackTrace ( ) const

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

◆ GetStartColumn()

int GetStartColumn ( ) const

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

◆ GetStartPosition()

int GetStartPosition ( ) const

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

◆ IsSharedCrossOrigin()

bool IsSharedCrossOrigin ( ) const

Passes on the value set by the embedder when it fed the script from which this Message was generated to V8.

◆ PrintCurrentStackTrace()

static void PrintCurrentStackTrace ( Isolate isolate,
FILE *  out 
)
static

Field Documentation

◆ kNoColumnInfo

const int kNoColumnInfo = 0
static

Definition at line 1201 of file v8.h.

◆ kNoLineNumberInfo

const int kNoLineNumberInfo = 0
static

Definition at line 1200 of file v8.h.

◆ kNoScriptIdInfo

const int kNoScriptIdInfo = 0
static

Definition at line 1202 of file v8.h.


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