npmtest-docxtemplater (v0.0.2)

Code coverage report for node-npmtest-docxtemplater/node_modules/docxtemplater/js/errors.js

Statements: 54.55% (12 / 22)      Branches: 100% (0 / 0)      Functions: 25% (1 / 4)      Lines: 54.55% (12 / 22)      Ignored: none     

All files » node-npmtest-docxtemplater/node_modules/docxtemplater/js/ » errors.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38    1 3 3 3   1   1         1   1         1   1           1   1            
"use strict";
 
function XTError(message) {
	this.name = "GenericError";
	this.message = message;
	this.stack = new Error(message).stack;
}
XTError.prototype = Error.prototype;
 
function XTTemplateError(message) {
	this.name = "TemplateError";
	this.message = message;
	this.stack = new Error(message).stack;
}
XTTemplateError.prototype = new XTError();
 
function XTScopeParserError(message) {
	this.name = "ScopeParserError";
	this.message = message;
	this.stack = new Error(message).stack;
}
XTScopeParserError.prototype = new XTError();
 
function XTInternalError(message) {
	this.name = "InternalError";
	this.properties = { explanation: "InternalError" };
	this.message = message;
	this.stack = new Error(message).stack;
}
XTInternalError.prototype = new XTError();
 
module.exports = {
	XTError: XTError,
	XTTemplateError: XTTemplateError,
	XTInternalError: XTInternalError,
	XTScopeParserError: XTScopeParserError
};