tildefriends/src/TaskTryCatch.h

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