lib/index.js
function StoreError(type, message) {
  this.name = StoreError.name;
  Error.call(this);
  type = type || ERR;
  message = type + ' ' + (message || 'unknown internal error');
  if(arguments.length > 2) {
    var args = [message].concat([].slice.call(arguments, 2));
    message = util.format.apply(util, args);
  }
  this.message = message;
}
function StoreError(type, message) {
  this.name = StoreError.name;
  Error.call(this);
  type = type || ERR;
  message = type + ' ' + (message || 'unknown internal error');
  if(arguments.length > 2) {
    var args = [message].concat([].slice.call(arguments, 2));
    message = util.format.apply(util, args);
  }
  this.message = message;
}
function StoreError ( type , message ) { this . name = StoreError . name ; Error . call ( this ) ; type = type || ERR ; message = type + ' ' + ( message || 'unknown internal error' ) ; if ( arguments . length > 2 ) { var args = [ message ] . concat ( [ ] . slice . call ( arguments , 2 ) ) ; message = util . format . apply ( util , args ) ; } this . message = message ; }
Abstract error super class.
Abstract error super class .