use of org.dbflute.exception.IllegalConditionBeanOperationException in project dbflute-core by dbflute.
the class HpQDRParameter method throwRangeOfMaxNumberOnlyNullNotAllowedException.
protected void throwRangeOfMaxNumberOnlyNullNotAllowedException(Number minNumber, RangeOfOption option) {
final ExceptionMessageBuilder br = new ExceptionMessageBuilder();
br.addNotice("The max-mumber of range-of for (Query)DerivedReferrer were null.");
br.addItem("Advice");
br.addElement("Basically it cannot allow max-mumber to be null.");
br.addElement("If you need to specify null, use allowOneSide() option.");
br.addItem("minNumber");
br.addElement(minNumber);
br.addItem("RangeOfOption");
br.addElement(option);
final String msg = br.buildExceptionMessage();
throw new IllegalConditionBeanOperationException(msg);
}
use of org.dbflute.exception.IllegalConditionBeanOperationException in project dbflute-core by dbflute.
the class HpQDRParameter method throwFromToToDateOnlyNullNotAllowedException.
protected void throwFromToToDateOnlyNullNotAllowedException(Date fromDate, FromToOption option) {
final ExceptionMessageBuilder br = new ExceptionMessageBuilder();
br.addNotice("The to-date of from-to for (Query)DerivedReferrer were null.");
br.addItem("Advice");
br.addElement("Basically it cannot allow to-date to be null.");
br.addElement("If you need to specify null, use allowOneSide() option.");
br.addItem("fromDate");
br.addElement(fromDate);
br.addItem("FromToOption");
br.addElement(option);
final String msg = br.buildExceptionMessage();
throw new IllegalConditionBeanOperationException(msg);
}
use of org.dbflute.exception.IllegalConditionBeanOperationException in project dbflute-core by dbflute.
the class HpQDRParameter method throwFromToUnsupportedOptionException.
protected void throwFromToUnsupportedOptionException(Date fromDate, Date toDate, FromToOption option, String keyword) {
final ExceptionMessageBuilder br = new ExceptionMessageBuilder();
br.addNotice("Unsupported option of from-to option.");
br.addItem("Advice");
br.addElement("Cannot use the option '" + keyword + "'");
br.addElement(" of the from-to for (Query)DerivedReferrer.");
br.addItem("From/To Date");
br.addElement(fromDate + " / " + toDate);
br.addItem("FromToOption");
br.addElement(option);
final String msg = br.buildExceptionMessage();
throw new IllegalConditionBeanOperationException(msg);
}
use of org.dbflute.exception.IllegalConditionBeanOperationException in project dbflute-core by dbflute.
the class HpQDRParameter method throwRangeOfUnsupportedOptionException.
protected void throwRangeOfUnsupportedOptionException(Number minNumber, Number maxNumber, RangeOfOption option, String keyword) {
final ExceptionMessageBuilder br = new ExceptionMessageBuilder();
br.addNotice("Unsupported option of range-of option.");
br.addItem("Advice");
br.addElement("Cannot use the option '" + keyword + "'");
br.addElement(" of the range-of for (Query)DerivedReferrer.");
br.addItem("Max/Min Number");
br.addElement(minNumber + " / " + maxNumber);
br.addItem("RangeOfOption");
br.addElement(option);
final String msg = br.buildExceptionMessage();
throw new IllegalConditionBeanOperationException(msg);
}
use of org.dbflute.exception.IllegalConditionBeanOperationException in project dbflute-core by dbflute.
the class HpQDRParameter method throwRangeOfMinNumberOnlyNullNotAllowedException.
protected void throwRangeOfMinNumberOnlyNullNotAllowedException(Number maxNumber, RangeOfOption option) {
final ExceptionMessageBuilder br = new ExceptionMessageBuilder();
br.addNotice("The min-number of range-of for (Query)DerivedReferrer were null.");
br.addItem("Advice");
br.addElement("Basically it cannot allow min-mumber to be null.");
br.addElement("If you need to specify null, use allowOneSide() option.");
br.addItem("maxNumber");
br.addElement(maxNumber);
br.addItem("RangeOfOption");
br.addElement(option);
final String msg = br.buildExceptionMessage();
throw new IllegalConditionBeanOperationException(msg);
}
Aggregations