src/ero.js
Function defineErrorClass
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Ero.prototype.defineErrorClass = function(definition, name) {
var ero = this;
if (!ero.template) {
throw new Error('The error template should be defined firstly!');
}