use of org.dbflute.exception.DfFixedConditionInvalidClassificationEmbeddedCommentException in project dbflute-core by dbflute.
the class DfFixedConditionDynamicAnalyzer method throwFixedConditionEmbeddedCommentClassificationElementNotFoundException.
protected void throwFixedConditionEmbeddedCommentClassificationElementNotFoundException(DfClassificationTop classificationTop, String elementName) {
final ExceptionMessageBuilder br = new ExceptionMessageBuilder();
br.addNotice("Not found the classification element in fixed condition.");
br.addItem("Foreign Key");
br.addElement(_foreignKey.getName());
br.addItem("Classification Name");
br.addElement(classificationTop.getClassificationName());
br.addItem("NotFound Element");
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 DfFixedConditionInvalidClassificationEmbeddedCommentException(msg);
}
Aggregations