v8  3.11.10(node0.8.26)
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
 

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 691 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 1920 of file api.cc.

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

Referenced by ReportException().

int GetEndPosition ( ) const

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

Definition at line 1891 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 1865 of file api.cc.

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

Referenced by ReportException().

v8::Handle< Value > GetScriptData ( ) const

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

Definition at line 1802 of file api.cc.

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

v8::Handle< Value > GetScriptResourceName ( ) const

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

Definition at line 1785 of file api.cc.

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

Referenced by ReportException().

Local< String > GetSourceLine ( ) const
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 1819 of file api.cc.

References Handle< T >::cast(), HandleScope::Close(), ENTER_V8, 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 1902 of file api.cc.

References ENTER_V8, EXCEPTION_BAILOUT_CHECK, EXCEPTION_PREAMBLE, Message::kNoColumnInfo, 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 1880 of file api.cc.

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

void PrintCurrentStackTrace ( FILE *  out)
static

Definition at line 1958 of file api.cc.

References ENTER_V8, and Isolate::PrintCurrentStackTrace().

Field Documentation

const int kNoColumnInfo = 0
static

Definition at line 748 of file v8.h.

Referenced by StackFrame::GetColumn(), Message::GetEndColumn(), and Message::GetStartColumn().

const int kNoLineNumberInfo = 0
static

Definition at line 747 of file v8.h.

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


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