V8 Project
|
An error message. More...
#include <v8.h>
Public Member Functions | |
Local< String > | Get () const |
Local< String > | GetSourceLine () const |
ScriptOrigin | GetScriptOrigin () const |
Returns the origin for the script from where the function causing the error originates. More... | |
Handle< Value > | GetScriptResourceName () const |
Returns the resource name for the script from where the function causing the error originates. More... | |
Handle< StackTrace > | GetStackTrace () const |
Exception stack trace. More... | |
int | GetLineNumber () const |
Returns the number, 1-based, of the line where the error occurred. More... | |
int | GetStartPosition () const |
Returns the index within the script of the first character where the error occurred. More... | |
int | GetEndPosition () const |
Returns the index within the script of the last character where the error occurred. More... | |
int | GetStartColumn () const |
Returns the index within the line of the first character where the error occurred. More... | |
int | GetEndColumn () const |
Returns the index within the line of the last character where the error occurred. More... | |
bool | IsSharedCrossOrigin () const |
Passes on the value set by the embedder when it fed the script from which this Message was generated to V8. More... | |
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 |
Definition at line 2059 of file api.cc.
References ENTER_V8, v8::EscapableHandleScope::Escape(), v8::internal::MessageHandler::GetMessage(), ON_BAILOUT, v8::Utils::OpenHandle(), and v8::Utils::ToLocal().
int v8::Message::GetEndColumn | ( | ) | const |
Returns the index within the line of the last character where the error occurred.
Definition at line 2187 of file api.cc.
References v8::CallV8HeapFunction(), v8::internal::Handle< T >::cast(), ENTER_V8, EXCEPTION_BAILOUT_CHECK, EXCEPTION_PREAMBLE, kNoColumnInfo, ON_BAILOUT, and v8::Utils::OpenHandle().
int v8::Message::GetEndPosition | ( | ) | const |
Returns the index within the script of the last character where the error occurred.
Definition at line 2162 of file api.cc.
References v8::internal::Handle< T >::cast(), ENTER_V8, and v8::Utils::OpenHandle().
int v8::Message::GetLineNumber | ( | ) | const |
Returns the number, 1-based, of the line where the error occurred.
Definition at line 2137 of file api.cc.
References v8::CallV8HeapFunction(), ENTER_V8, EXCEPTION_BAILOUT_CHECK, EXCEPTION_PREAMBLE, kNoLineNumberInfo, ON_BAILOUT, and v8::Utils::OpenHandle().
ScriptOrigin v8::Message::GetScriptOrigin | ( | ) | const |
Returns the origin for the script from where the function causing the error originates.
Definition at line 2071 of file api.cc.
References v8::internal::Handle< T >::cast(), v8::internal::Script::GetNameOrSourceURL(), v8::Integer::New(), v8::Utils::OpenHandle(), and v8::Utils::ToLocal().
Referenced by GetScriptResourceName().
v8::Handle< Value > v8::Message::GetScriptResourceName | ( | ) | const |
Returns the resource name for the script from where the function causing the error originates.
Definition at line 2093 of file api.cc.
References GetScriptOrigin(), and v8::ScriptOrigin::ResourceName().
Definition at line 2219 of file api.cc.
References v8::CallV8HeapFunction(), ENTER_V8, v8::EscapableHandleScope::Escape(), EXCEPTION_BAILOUT_CHECK, EXCEPTION_PREAMBLE, ON_BAILOUT, v8::Utils::OpenHandle(), and v8::Utils::ToLocal().
v8::Handle< 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 2098 of file api.cc.
References v8::internal::Handle< T >::cast(), ENTER_V8, v8::EscapableHandleScope::Escape(), v8::Utils::OpenHandle(), and v8::Utils::StackTraceToLocal().
int v8::Message::GetStartColumn | ( | ) | const |
Returns the index within the line of the first character where the error occurred.
Definition at line 2172 of file api.cc.
References v8::CallV8HeapFunction(), ENTER_V8, EXCEPTION_BAILOUT_CHECK, EXCEPTION_PREAMBLE, kNoColumnInfo, ON_BAILOUT, and v8::Utils::OpenHandle().
int v8::Message::GetStartPosition | ( | ) | const |
Returns the index within the script of the first character where the error occurred.
Definition at line 2152 of file api.cc.
References v8::internal::Handle< T >::cast(), ENTER_V8, and v8::Utils::OpenHandle().
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 2206 of file api.cc.
References v8::internal::Handle< T >::cast(), ENTER_V8, and v8::Utils::OpenHandle().
|
static |
Definition at line 2237 of file api.cc.
References ENTER_V8, and v8::internal::Isolate::PrintCurrentStackTrace().
|
static |
Definition at line 1296 of file v8.h.
Referenced by v8::StackFrame::GetColumn(), GetEndColumn(), and GetStartColumn().
|
static |
Definition at line 1295 of file v8.h.
Referenced by GetLineNumber(), and v8::StackFrame::GetLineNumber().
|
static |
Definition at line 1297 of file v8.h.
Referenced by v8::StackFrame::GetScriptId().