#include <v8.h>
Public メソッド | |
TryCatch () | |
~TryCatch () | |
bool | HasCaught () const |
Local< Value > | Exception () const |
Local< v8::Message > | Message () const |
void | Reset () |
void | SetVerbose (bool value) |
void | SetCaptureMessage (bool value) |
Public 変数 | |
TryCatch * | next_ |
void * | exception_ |
void * | message_ |
bool | is_verbose_ |
bool | capture_message_ |
An external exception handler.
v8::TryCatch::TryCatch | ( | ) |
Creates a new try/catch block and registers it with v8.
v8::TryCatch::~TryCatch | ( | ) |
Unregisters and deletes this try/catch block.
Returns the exception caught by this try/catch block. If no exception has been caught an empty handle is returned.
The returned handle is valid until this TryCatch block has been destroyed.
参照先 exception_, HasCaught(), v8::internal::Object, と v8::Utils::ToLocal().
参照元 v8::internal::DebugMessageThread::DebugEvent(), v8::Shell::ReportException(), と v8::internal::Execution::TryCall().
bool v8::TryCatch::HasCaught | ( | ) | const |
Returns true if an exception has been caught by this try/catch block.
参照先 exception_, と v8::internal::Object.
参照元 v8::internal::DebugMessageThread::DebugEvent(), Exception(), Message(), と v8::internal::Execution::TryCall().
v8::Local< v8::Message > v8::TryCatch::Message | ( | ) | const |
Returns the message associated with this exception. If there is no message associated an empty handle is returned.
The returned handle is valid until this TryCatch block has been destroyed.
参照先 v8::internal::Smi::FromInt(), HasCaught(), message_, v8::Utils::MessageToLocal(), と v8::internal::Object.
void v8::TryCatch::Reset | ( | ) |
Clears any exceptions that may have been caught by this try/catch block. After this method has been called, HasCaught() will return false.
It is not necessary to clear a try/catch block before using it again; if another exception is thrown the previously caught exception will just be overwritten. However, it is often a good idea since it makes it easier to determine which operation threw a given exception.
void v8::TryCatch::SetCaptureMessage | ( | bool | value | ) |
Set whether or not this TryCatch should capture a Message object which holds source information about where the exception occurred. True by default.
参照先 capture_message_.
参照元 v8::internal::MessageHandler::MakeMessageObject(), と v8::internal::Execution::TryCall().
void v8::TryCatch::SetVerbose | ( | bool | value | ) |
Set verbosity of the external exception handler.
By default, exceptions that are caught by an external exception handler are not reported. Call SetVerbose with true on an external exception handler to have exceptions caught by the handler reported as if they were not caught.
参照先 is_verbose_.
参照元 v8::internal::MessageHandler::MakeMessageObject(), と v8::internal::Execution::TryCall().
参照元 SetCaptureMessage().
void* v8::TryCatch::exception_ |
参照元 Exception(), HasCaught(), と Reset().
参照元 SetVerbose().
void* v8::TryCatch::message_ |