Index: src/JsError.h |
=================================================================== |
--- a/src/JsError.h |
+++ b/src/JsError.h |
@@ -24,16 +24,19 @@ |
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 |