Index: src/JsError.h |
=================================================================== |
--- a/src/JsError.h |
+++ b/src/JsError.h |
@@ -25,15 +25,17 @@ |
namespace AdblockPlus |
{ |
class JsError : public std::runtime_error |
{ |
public: |
JsError(v8::Isolate* isolate, |
const v8::Local<v8::Value>& exception, |
const v8::Local<v8::Message>& message); |
+ JsError(const char* message, const char* filename, int line); |
static std::string ExceptionToString(v8::Isolate* isolate, const v8::Local<v8::Value>& exception, |
const v8::Local<v8::Message>& message); |
- |
+ static std::string ErrorToString(const char* message, |
+ const char* filename, int line); |
}; |
} |
#endif |