use of org.dbflute.exception.DfParameterBeanDuplicateException in project dbflute-core by dbflute.
the class DfOutsideSqlAnalyzer method assertDuplicateParameterBean.
protected void assertDuplicateParameterBean(String pmbName, File currentSqlFile) {
final DfPmbMetaData metaData = _sql2entityMeta.getPmbMetaDataMap().get(pmbName);
if (metaData == null) {
return;
}
final ExceptionMessageBuilder br = new ExceptionMessageBuilder();
br.addNotice("The same-name parameter-beans were found.");
br.addItem("ParameterBean");
br.addElement(pmbName);
br.addItem("SQL Files");
br.addElement(metaData.getOutsideSqlFile());
br.addElement(currentSqlFile);
final String msg = br.buildExceptionMessage();
throw new DfParameterBeanDuplicateException(msg);
}
Aggregations