Search in sources :

Example 6 with DfXlsReaderReadFailureException

use of org.dbflute.exception.DfXlsReaderReadFailureException in project dbflute-core by dbflute.

the class DfTableXlsReader method throwLargeDataInvalidManagedDataException.

protected void throwLargeDataInvalidManagedDataException(String sheetName, String columnTitle, DfDataRow row, String value) {
    final ExceptionMessageBuilder br = new ExceptionMessageBuilder();
    br.addNotice("Invalid managed large data.");
    br.addItem("Advice");
    br.addElement("It should be key" + LDATA_KEY_DELIMITER + "{value}");
    br.addElement(" e.g. foo" + LDATA_KEY_DELIMITER + "{bar}");
    br.addItem("Xls File");
    br.addElement(_xlsFile);
    br.addItem("Sheet Name");
    br.addElement(sheetName);
    br.addItem("Column Title");
    br.addElement(columnTitle);
    br.addItem("Row Number");
    br.addElement(row.getRowNumber());
    br.addItem("Large Data");
    br.addElement(value);
    final String msg = br.buildExceptionMessage();
    throw new DfXlsReaderReadFailureException(msg);
}
Also used : ExceptionMessageBuilder(org.dbflute.helper.message.ExceptionMessageBuilder) DfXlsReaderReadFailureException(org.dbflute.exception.DfXlsReaderReadFailureException) RichTextString(org.apache.poi.ss.usermodel.RichTextString)

Aggregations

RichTextString (org.apache.poi.ss.usermodel.RichTextString)6 DfXlsReaderReadFailureException (org.dbflute.exception.DfXlsReaderReadFailureException)6 ExceptionMessageBuilder (org.dbflute.helper.message.ExceptionMessageBuilder)6 DfDtsColumnType (org.dbflute.helper.dataset.types.DfDtsColumnType)1