lib/errors/validator.js
function ValidatorError (path, type) {
  var msg = type
    ? '"' + type + '" '
    : '';
  NeopreneError.call(this, 'Validator ' + msg + 'failed for path ' + path);
  Error.captureStackTrace(this, arguments.callee);
  this.name = 'ValidatorError';
  this.path = path;
  this.type = type;
}
function ValidatorError (path, type) {
  var msg = type
    ? '"' + type + '" '
    : '';
  NeopreneError.call(this, 'Validator ' + msg + 'failed for path ' + path);
  Error.captureStackTrace(this, arguments.callee);
  this.name = 'ValidatorError';
  this.path = path;
  this.type = type;
}
function ValidatorError ( path , type ) { var msg = type ? '"' + type + '" ' : '' ; NeopreneError . call ( this , 'Validator ' + msg + 'failed for path ' + path ) ; Error . captureStackTrace ( this , arguments . callee ) ; this . name = 'ValidatorError' ; this . path = path ; this . type = type ; }
Schema validator error

@param {String} path
@param {String} msg
@inherits NeopreneError
@api private
Schema validator error