V8 Project
v8::internal::Isolate::ExceptionScope Class Reference

#include <isolate.h>

+ Collaboration diagram for v8::internal::Isolate::ExceptionScope:

Public Member Functions

 ExceptionScope (Isolate *isolate)
 
 ~ExceptionScope ()
 

Private Attributes

Isolateisolate_
 
Handle< Objectpending_exception_
 
v8::TryCatchcatcher_
 

Detailed Description

Definition at line 697 of file isolate.h.

Constructor & Destructor Documentation

◆ ExceptionScope()

v8::internal::Isolate::ExceptionScope::ExceptionScope ( Isolate isolate)
inlineexplicit

Definition at line 699 of file isolate.h.

699  :
700  // Scope currently can only be used for regular exceptions,
701  // not termination exception.
702  isolate_(isolate),
704  catcher_(isolate_->catcher())
705  { }
Handle< Object > pending_exception_
Definition: isolate.h:714
Object * pending_exception()
Definition: isolate.h:561

◆ ~ExceptionScope()

v8::internal::Isolate::ExceptionScope::~ExceptionScope ( )
inline

Definition at line 707 of file isolate.h.

707  {
708  isolate_->set_catcher(catcher_);
710  }
void set_pending_exception(Object *exception_obj)
Definition: isolate.h:567

References catcher_, isolate_, pending_exception_, and v8::internal::Isolate::set_pending_exception().

+ Here is the call graph for this function:

Member Data Documentation

◆ catcher_

v8::TryCatch* v8::internal::Isolate::ExceptionScope::catcher_
private

Definition at line 715 of file isolate.h.

Referenced by ~ExceptionScope().

◆ isolate_

Isolate* v8::internal::Isolate::ExceptionScope::isolate_
private

Definition at line 713 of file isolate.h.

Referenced by ~ExceptionScope().

◆ pending_exception_

Handle<Object> v8::internal::Isolate::ExceptionScope::pending_exception_
private

Definition at line 714 of file isolate.h.

Referenced by ~ExceptionScope().


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