lib/utils/jhipster_utils.js
function checkForReservedClassName(args) {
  if (!args) {
    return;
  }
  if (JHipsterCore.isReservedClassName(args.name)) {
    if (args.shouldThrow) {
      throw new BuildException(
        exceptions.IllegalName,
        `The passed class name '${args.name}' is reserved.`);
    } else {
      winston.warn(
        chalk.yellow(
          `The passed class name '${args.name}' is reserved .`));
    }
  }
}
function checkForReservedClassName(args) {
  if (!args) {
    return;
  }
  if (JHipsterCore.isReservedClassName(args.name)) {
    if (args.shouldThrow) {
      throw new BuildException(
        exceptions.IllegalName,
        `The passed class name '${args.name}' is reserved.`);
    } else {
      winston.warn(
        chalk.yellow(
          `The passed class name '${args.name}' is reserved .`));
    }
  }
}
function checkForReservedClassName ( args ) { if ( ! args ) { return ; } if ( JHipsterCore . isReservedClassName ( args . name ) ) { if ( args . shouldThrow ) { throw new BuildException ( exceptions . IllegalName , ` ${ args . name } ` ) ; } else { winston . warn ( chalk . yellow ( ` ${ args . name } ` ) ) ; } } }
Checks for reserved class name.
@param args an object having as keys: name and shouldThrow
Checks for reserved class name .