v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::Message Class Reference

#include <v8-message.h>

Collaboration diagram for v8::Message:

Public Member Functions

Local< StringGet () const
 
IsolateGetIsolate () const
 
V8_WARN_UNUSED_RESULT MaybeLocal< StringGetSource (Local< Context > context) const
 
V8_WARN_UNUSED_RESULT MaybeLocal< StringGetSourceLine (Local< Context > context) const
 
ScriptOrigin GetScriptOrigin () const
 
Local< ValueGetScriptResourceName () const
 
Local< StackTraceGetStackTrace () const
 
V8_WARN_UNUSED_RESULT Maybe< int > GetLineNumber (Local< Context > context) const
 
int GetStartPosition () const
 
int GetEndPosition () const
 
int GetWasmFunctionIndex () const
 
int ErrorLevel () const
 
int GetStartColumn () const
 
V8_WARN_UNUSED_RESULT Maybe< int > GetStartColumn (Local< Context > context) const
 
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, std::ostream &out, PrintCurrentStackTraceFilterCallback should_include_frame_callback=nullptr)
 

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.

Definition at line 107 of file v8-message.h.

Member Function Documentation

◆ ErrorLevel()

int v8::Message::ErrorLevel ( ) const

Returns the error level of the message.

Definition at line 2944 of file api.cc.

Here is the call graph for this function:

◆ Get()

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

Definition at line 2864 of file api.cc.

Here is the call graph for this function:

◆ GetEndColumn() [1/2]

int v8::Message::GetEndColumn ( ) const

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

Definition at line 2987 of file api.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetEndColumn() [2/2]

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

Definition at line 3000 of file api.cc.

Here is the call graph for this function:

◆ GetEndPosition()

int v8::Message::GetEndPosition ( ) const

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

Definition at line 2935 of file api.cc.

Here is the call graph for this function:

◆ GetIsolate()

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

Return the isolate to which the Message belongs.

Definition at line 2874 of file api.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetLineNumber()

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

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

Definition at line 2917 of file api.cc.

Here is the call graph for this function:

◆ GetScriptOrigin()

ScriptOrigin v8::Message::GetScriptOrigin ( ) const

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

Definition at line 2879 of file api.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetScriptResourceName()

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

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

Definition at line 2901 of file api.cc.

Here is the call graph for this function:

◆ GetSource()

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

Definition at line 3018 of file api.cc.

Here is the call graph for this function:

◆ GetSourceLine()

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

Definition at line 3027 of file api.cc.

Here is the call graph for this function:

◆ GetStackTrace()

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

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

Definition at line 2906 of file api.cc.

Here is the call graph for this function:

◆ GetStartColumn() [1/2]

int v8::Message::GetStartColumn ( ) const

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

Definition at line 2950 of file api.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetStartColumn() [2/2]

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

Definition at line 2983 of file api.cc.

Here is the call graph for this function:

◆ GetStartPosition()

int v8::Message::GetStartPosition ( ) const

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

Definition at line 2926 of file api.cc.

Here is the call graph for this function:

◆ 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.

Definition at line 2959 of file api.cc.

Here is the call graph for this function:

◆ IsOpaque()

bool v8::Message::IsOpaque ( ) const

Definition at line 3011 of file api.cc.

Here is the call graph for this function:

◆ 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.

Definition at line 3004 of file api.cc.

Here is the call graph for this function:

◆ PrintCurrentStackTrace()

void v8::Message::PrintCurrentStackTrace ( Isolate * isolate,
std::ostream & out,
PrintCurrentStackTraceFilterCallback should_include_frame_callback = nullptr )
static

If provided, the callback can be used to selectively include or redact frames based on their script names. (true to include a frame)

Definition at line 3036 of file api.cc.

Here is the call graph for this function:

Member Data Documentation

◆ kNoColumnInfo

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

Definition at line 199 of file v8-message.h.

◆ kNoLineNumberInfo

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

Definition at line 198 of file v8-message.h.

◆ kNoScriptIdInfo

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

Definition at line 200 of file v8-message.h.

◆ kNoWasmFunctionIndexInfo

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

Definition at line 201 of file v8-message.h.


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