v8
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
v8::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< String
GetSourceLine (Local< Context > context) const
 
ScriptOrigin GetScriptOrigin () const
 
Handle< ValueGetScriptResourceName () const
 
Handle< 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.

Member Function Documentation

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

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

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

Returns the origin 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.

V8_WARN_UNUSED_RESULT MaybeLocal<String> v8::Message::GetSourceLine ( Local< Context context) const
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.

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

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

bool v8::Message::IsOpaque ( ) const
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.

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

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

v8::Message::V8_DEPRECATE_SOON ( "Use maybe version"  ,
int GetStartColumn()  const 
)

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

v8::Message::V8_DEPRECATE_SOON ( "Use maybe version"  ,
int GetEndColumn()  const 
)

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

Member Data Documentation

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

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