v8  4.6.85(node5.12.0)
V8 is Google's open source JavaScript engine
Message Class Reference

#include <v8.h>

Public Member Functions

Local< StringGet () const
 
 V8_DEPRECATE_SOON ("Use maybe version", Local< String > GetSourceLine() const)
 
V8_WARN_UNUSED_RESULT MaybeLocal< StringGetSourceLine (Local< Context > context) const
 
ScriptOrigin GetScriptOrigin () const
 
Local< ValueGetScriptResourceName () const
 
Local< StackTraceGetStackTrace () const
 
 V8_DEPRECATE_SOON ("Use maybe version", int GetLineNumber() const)
 
V8_WARN_UNUSED_RESULT Maybe< int > GetLineNumber (Local< Context > context) const
 
int GetStartPosition () const
 
int GetEndPosition () const
 
 V8_DEPRECATE_SOON ("Use maybe version", int GetStartColumn() const)
 
V8_WARN_UNUSED_RESULT Maybe< int > GetStartColumn (Local< Context > context) const
 
 V8_DEPRECATE_SOON ("Use maybe version", int GetEndColumn() const)
 
V8_WARN_UNUSED_RESULT Maybe< int > GetEndColumn (Local< Context > context) const
 
bool IsSharedCrossOrigin () const
 
bool IsOpaque () 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 1430 of file v8.h.

Member Function Documentation

Local<String> Get ( ) const
V8_WARN_UNUSED_RESULT Maybe<int> GetEndColumn ( Local< Context context) const
int GetEndPosition ( ) const

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

V8_WARN_UNUSED_RESULT Maybe<int> GetLineNumber ( Local< Context context) const
ScriptOrigin GetScriptOrigin ( ) const

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

Local<Value> GetScriptResourceName ( ) const

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

V8_WARN_UNUSED_RESULT MaybeLocal<String> GetSourceLine ( Local< Context context) const
Local<StackTrace> GetStackTrace ( ) const

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

V8_WARN_UNUSED_RESULT Maybe<int> GetStartColumn ( Local< Context context) const
int GetStartPosition ( ) const

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

bool IsOpaque ( ) const
bool IsSharedCrossOrigin ( ) const

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

static void PrintCurrentStackTrace ( Isolate isolate,
FILE *  out 
)
static
V8_DEPRECATE_SOON ( "Use maybe version"  ,
Local< String > GetSourceLine()  const 
)
V8_DEPRECATE_SOON ( "Use maybe version"  ,
int GetLineNumber()  const 
)

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

V8_DEPRECATE_SOON ( "Use maybe version"  ,
int GetStartColumn()  const 
)

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

V8_DEPRECATE_SOON ( "Use maybe version"  ,
int GetEndColumn()  const 
)

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

Field Documentation

const int kNoColumnInfo = 0
static

Definition at line 1500 of file v8.h.

const int kNoLineNumberInfo = 0
static

Definition at line 1499 of file v8.h.

const int kNoScriptIdInfo = 0
static

Definition at line 1501 of file v8.h.


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