Public Member Functions | Static Public Member Functions | Static Public Attributes

v8::Message Class Reference

#include <v8.h>

List of all members.

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.


Member Function Documentation

int v8::Message::GetEndColumn (  )  const

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

int v8::Message::GetEndPosition (  )  const

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

int v8::Message::GetLineNumber (  )  const

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

Handle<Value> v8::Message::GetScriptData (  )  const

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

Handle<Value> v8::Message::GetScriptResourceName (  )  const

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

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

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

int v8::Message::GetStartColumn (  )  const

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

int v8::Message::GetStartPosition (  )  const

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


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