// Copyright 2009, Squish Tech, LLC. #ifndef SRC_XML_SYNTAX_ERROR_H_ #define SRC_XML_SYNTAX_ERROR_H_ #include #include "libxmljs.h" namespace libxmljs { // basically being used like a namespace class XmlSyntaxError { public: // push xmlError onto v8::Array // helper method for xml library static void PushToArray(void* errs, xmlError* error); // create a v8 object for the syntax eror // TODO make it a v8 Erorr object static v8::Local BuildSyntaxError(xmlError* error); }; } // namespace libxmljs #endif // SRC_XML_SYNTAX_ERROR_H_