use of org.dbflute.exception.DfIllegalPropertySettingException in project dbflute-core by dbflute.
the class DfClsTopGroupElementHandling method throwClassificationGroupingMapElementNotFoundException.
protected void throwClassificationGroupingMapElementNotFoundException(String elementName) {
final ExceptionMessageBuilder br = new ExceptionMessageBuilder();
br.addNotice("Not found the classification element in the grouping map.");
br.addItem("Classification Name");
br.addElement(_classificationTop.getClassificationName());
br.addItem("Group Name");
br.addElement(_groupName);
br.addItem("NotFound Name");
br.addElement(elementName);
br.addItem("Defined Element");
final List<DfClassificationElement> elementList = _classificationTop.getClassificationElementList();
for (DfClassificationElement element : elementList) {
br.addElement(element);
}
final String msg = br.buildExceptionMessage();
throw new DfIllegalPropertySettingException(msg);
}
Aggregations