Cory McWilliams
7a16a1d65c
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3161 ed5197a5-7fde-0310-b194-c3ffbd925b24
20 lines
296 B
C++
20 lines
296 B
C++
#ifndef INCLUDED_TaskTryCatch
|
|
#define INCLUDED_TaskTryCatch
|
|
|
|
#include <v8.h>
|
|
|
|
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
|