xpath2
Version:
DOM 3 XPath implementation (with XPath 2.0 language support)
22 lines (16 loc) • 620 B
JavaScript
var cError = global.Error;
var cObject = global.Object;
function cXPathException(nCode, sMessage) {
this.code = nCode;
this.message = sMessage;
}
cXPathException.prototype = cObject.create(cError.prototype);
cXPathException.prototype.code = null;
cXPathException.prototype.message = null;
// Constants
cXPathException.INVALID_EXPRESSION_ERR = 51;
cXPathException.TYPE_ERR = 52;
//var oXPathException_messages = {};
//oXPathException_messages[cXPathException.INVALID_EXPRESSION_ERR] = "INVALID_EXPRESSION_ERR";
//oXPathException_messages[cXPathException.TYPE_ERR] = "TYPE_ERR";
module.exports = cXPathException;