spreadsheet/ruleJS.all.full.js
function (type) {
      var error = Exception.errors.filter(function (item) {
        return item.type === type || item.output === type;
      })[0];

      return error ? error.output : null;
    }
function (type) {
      var error = Exception.errors.filter(function (item) {
        return item.type === type || item.output === type;
      })[0];

      return error ? error.output : null;
    }
function ( type ) { var error = Exception . errors . filter ( function ( item ) { return item . type === type || item . output === type ; } ) [ 0 ] ; return error ? error . output : null ; }
get error by type
@param {String} type
@returns {*}
get error by type