Search in sources :

Example 6 with DfFixedConditionInvalidClassificationEmbeddedCommentException

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);
}
Also used : DfClassificationElement(org.dbflute.properties.assistant.classification.DfClassificationElement) ExceptionMessageBuilder(org.dbflute.helper.message.ExceptionMessageBuilder) DfFixedConditionInvalidClassificationEmbeddedCommentException(org.dbflute.exception.DfFixedConditionInvalidClassificationEmbeddedCommentException)

Aggregations

DfFixedConditionInvalidClassificationEmbeddedCommentException (org.dbflute.exception.DfFixedConditionInvalidClassificationEmbeddedCommentException)6 ExceptionMessageBuilder (org.dbflute.helper.message.ExceptionMessageBuilder)4 DfClassificationElement (org.dbflute.properties.assistant.classification.DfClassificationElement)2 DfClassificationTop (org.dbflute.properties.assistant.classification.DfClassificationTop)2