| Index: src/JsError.h |
| =================================================================== |
| --- a/src/JsError.h |
| +++ b/src/JsError.h |
| @@ -29,11 +29,18 @@ |
| public: |
| JsError(v8::Isolate* isolate, const v8::Local<v8::Value>& exception, |
| const v8::Local<v8::Message>& message); |
| static std::string ExceptionToString(v8::Isolate* isolate, |
| const v8::Local<v8::Value>& exception, |
| const v8::Local<v8::Message>& message); |
| }; |
| + |
| + class JsValueError : public std::runtime_error |
|
hub
2018/06/19 17:17:04
On second thought, maybe I shoudln't make a new er
|
| + { |
| + public: |
| + JsValueError(v8::Isolate* isolate, const char* filename, int line); |
| + static std::string ErrorToString(const char* filename, int line); |
| + }; |
| } |
| #endif |