#ifndef INCLUDED_TaskTryCatch #define INCLUDED_TaskTryCatch #include class Task; class TaskTryCatch { public: TaskTryCatch(Task* task); ~TaskTryCatch(); bool hasCaught(); private: v8::TryCatch _tryCatch; static const char* toString(const v8::String::Utf8Value& value); }; #endif