Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
v8::Message Class Reference

#include <v8-message.h>

Public Member Functions

Local< StringGet () const
 
IsolateGetIsolate () const
 
MaybeLocal< StringGetSource (Local< Context > context) const
 
MaybeLocal< StringGetSourceLine (Local< Context > context) const
 
ScriptOrigin GetScriptOrigin () const
 
Local< ValueGetScriptResourceName () const
 
Local< StackTraceGetStackTrace () const
 
Maybe< int > GetLineNumber (Local< Context > context) const
 
int GetStartPosition () const
 
int GetEndPosition () const
 
int GetWasmFunctionIndex () const
 
int ErrorLevel () const
 
int GetStartColumn () const
 
Maybe< int > GetStartColumn (Local< Context > context) const
 
int GetEndColumn () const
 
Maybe< int > GetEndColumn (Local< Context > context) const
 
bool IsSharedCrossOrigin () const
 
bool IsOpaque () const
 

Static Public Member Functions

static void PrintCurrentStackTrace (Isolate *isolate, std::ostream &out)
 

Static Public Attributes

static const int kNoLineNumberInfo = 0
 
static const int kNoColumnInfo = 0
 
static const int kNoScriptIdInfo = 0
 
static const int kNoWasmFunctionIndexInfo = -1
 

Detailed Description

An error message.

Member Function Documentation

◆ ErrorLevel()

int v8::Message::ErrorLevel ( ) const

Returns the error level of the message.

◆ Get()

Local< String > v8::Message::Get ( ) const

◆ GetEndColumn() [1/2]

int v8::Message::GetEndColumn ( ) const

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

◆ GetEndColumn() [2/2]

Maybe< int > v8::Message::GetEndColumn ( Local< Context context) const

◆ GetEndPosition()

int v8::Message::GetEndPosition ( ) const

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

◆ GetIsolate()

Isolate * v8::Message::GetIsolate ( ) const

Return the isolate to which the Message belongs.

◆ GetLineNumber()

Maybe< int > v8::Message::GetLineNumber ( Local< Context context) const

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

◆ GetScriptOrigin()

ScriptOrigin v8::Message::GetScriptOrigin ( ) const

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

◆ GetScriptResourceName()

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

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

◆ GetSource()

MaybeLocal< String > v8::Message::GetSource ( Local< Context context) const

◆ GetSourceLine()

MaybeLocal< String > v8::Message::GetSourceLine ( Local< Context context) const

◆ GetStackTrace()

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

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

◆ GetStartColumn() [1/2]

int v8::Message::GetStartColumn ( ) const

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

◆ GetStartColumn() [2/2]

Maybe< int > v8::Message::GetStartColumn ( Local< Context context) const

◆ GetStartPosition()

int v8::Message::GetStartPosition ( ) const

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

◆ GetWasmFunctionIndex()

int v8::Message::GetWasmFunctionIndex ( ) const

Returns the Wasm function index where the error occurred. Returns -1 if message is not from a Wasm script.

◆ IsOpaque()

bool v8::Message::IsOpaque ( ) const

◆ IsSharedCrossOrigin()

bool v8::Message::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 v8::Message::PrintCurrentStackTrace ( Isolate isolate,
std::ostream &  out 
)
static

Member Data Documentation

◆ kNoColumnInfo

const int v8::Message::kNoColumnInfo = 0
static

◆ kNoLineNumberInfo

const int v8::Message::kNoLineNumberInfo = 0
static

◆ kNoScriptIdInfo

const int v8::Message::kNoScriptIdInfo = 0
static

◆ kNoWasmFunctionIndexInfo

const int v8::Message::kNoWasmFunctionIndexInfo = -1
static

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