v8  3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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
 
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 1201 of file v8.h.

Member Function Documentation

int GetEndColumn ( ) const

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

Definition at line 2111 of file api.cc.

References Handle< T >::cast(), ENTER_V8, EXCEPTION_BAILOUT_CHECK, EXCEPTION_PREAMBLE, and Utils::OpenHandle().

Referenced by DumpException(), and ReportException().

int GetEndPosition ( ) const

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

Definition at line 2086 of file api.cc.

References Handle< T >::cast(), ENTER_V8, and Utils::OpenHandle().

int GetLineNumber ( ) const

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

Definition at line 2061 of file api.cc.

References ENTER_V8, EXCEPTION_BAILOUT_CHECK, EXCEPTION_PREAMBLE, Message::kNoLineNumberInfo, ON_BAILOUT, and Utils::OpenHandle().

Referenced by DumpException(), and ReportException().

Handle<Value> GetScriptData ( ) const

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

v8::Handle< Value > GetScriptResourceName ( ) const

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

Definition at line 2001 of file api.cc.

References Handle< T >::cast(), Script::cast(), ENTER_V8, EscapableHandleScope::Escape(), name, Utils::OpenHandle(), and Utils::ToLocal().

Referenced by ReportException().

v8::Handle< v8::StackTrace > GetStackTrace ( ) const

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

Definition at line 2017 of file api.cc.

References Handle< T >::cast(), ENTER_V8, EscapableHandleScope::Escape(), Utils::OpenHandle(), and Utils::StackTraceToLocal().

int GetStartColumn ( ) const

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

Definition at line 2096 of file api.cc.

References ENTER_V8, EXCEPTION_BAILOUT_CHECK, EXCEPTION_PREAMBLE, and Utils::OpenHandle().

Referenced by ReportException().

int GetStartPosition ( ) const

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

Definition at line 2076 of file api.cc.

References Handle< T >::cast(), ENTER_V8, and Utils::OpenHandle().

bool IsSharedCrossOrigin ( ) const

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

Definition at line 2130 of file api.cc.

References Handle< T >::cast(), Script::cast(), ENTER_V8, and Utils::OpenHandle().

void PrintCurrentStackTrace ( Isolate isolate,
FILE *  out 
)
static

Definition at line 2161 of file api.cc.

References ENTER_V8, and Isolate::PrintCurrentStackTrace().

Field Documentation

const int kNoColumnInfo = 0
static

Definition at line 1264 of file v8.h.

Referenced by StackFrame::GetColumn().

const int kNoLineNumberInfo = 0
static

Definition at line 1263 of file v8.h.

Referenced by Message::GetLineNumber(), and StackFrame::GetLineNumber().

const int kNoScriptIdInfo = 0
static

Definition at line 1265 of file v8.h.

Referenced by StackFrame::GetScriptId(), and TEST().


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