src/data-structures/errors.js
function InvalidValidationRuleParameter(ruleParameter, reason) {
  var defaultMessage = sprintf('%s is not a valid rule parameter.', ruleParameter);
  this.message = reason ? sprintf('%s. %s', defaultMessage, reason) : defaultMessage;
  this.name = 'InvalidValidationRuleParameter';

  Error.captureStackTrace(this, InvalidValidationRuleParameter);
}
function InvalidValidationRuleParameter(ruleParameter, reason) {
  var defaultMessage = sprintf('%s is not a valid rule parameter.', ruleParameter);
  this.message = reason ? sprintf('%s. %s', defaultMessage, reason) : defaultMessage;
  this.name = 'InvalidValidationRuleParameter';

  Error.captureStackTrace(this, InvalidValidationRuleParameter);
}
function InvalidValidationRuleParameter ( ruleParameter , reason ) { var defaultMessage = sprintf ( '%s is not a valid rule parameter.' , ruleParameter ) ; this . message = reason ? sprintf ( '%s. %s' , defaultMessage , reason ) : defaultMessage ; this . name = 'InvalidValidationRuleParameter' ; Error . captureStackTrace ( this , InvalidValidationRuleParameter ) ; }
A class that represents an invalid validation rule pareameter

@constructor
@author Sendy Halim <sendyhalim93@gmail.com>
@param message - The error message.
A class that represents an invalid validation rule pareameter