Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

26 lines (18 sloc) 0.597 kB
// Copyright 2009, Squish Tech, LLC.
#ifndef SRC_XML_SYNTAX_ERROR_H_
#define SRC_XML_SYNTAX_ERROR_H_
#include <libxml/xmlerror.h>
#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* ctx, xmlError* error);
// create a v8 object for the syntax eror
// TODO make it a v8 Erorr object
static v8::Handle<v8::Value> BuildSyntaxError(xmlError* error);
};
} // namespace libxmljs
#endif // SRC_XML_SYNTAX_ERROR_H_
Jump to Line
Something went wrong with that request. Please try again.