Examples of UnexpectedDataException


Examples of com.scooterframework.orm.sqldataexpress.exception.UnexpectedDataException

        if (limitOrFixed != DataProcessor.NO_ROW_LIMIT) {
            boolean requireFixed = Util.getBooleanValue(inputs, DataProcessor.input_key_records_fixed, false);
            if (requireFixed) {
                if (td.getTableSize() != 0 && td.getTableSize() != limitOrFixed) {
                    throw new UnexpectedDataException("Failed to retrieveRows for '" +
                      processorName + "': required only " +
                        limitOrFixed + " but retrieved " + td.getTableSize() + ".");
                }
            }
            else {
                if (td.getTableSize() > limitOrFixed) {
                    throw new UnexpectedDataException("Failed to retrieveRows for '" +
                      processorName + "': required limit at most " +
                        limitOrFixed + " but retrieved " + td.getTableSize() + ".");
                }
            }
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.