Package com.coherentlogic.usaspending.client.core.exceptions

Examples of com.coherentlogic.usaspending.client.core.exceptions.ValueOutOfBoundsException


        // Below will work, though only 1000 records will be returned.
        else if (MAX_RECORDS_MAX_VALUE <= maxRecords) {
            log.warn(message);
            addParameter(MAX_RECORDS, Integer.toString(maxRecords));
        } else // maxRecords <= 0, which is illegal.
            throw new ValueOutOfBoundsException("The maxRecords value should " +
                "be between 0 and " + MAX_RECORDS + " however the value was " +
                "actually " + maxRecords);

        return this;
    }
View Full Code Here


     * Applies to fpds and fsrs.
     */
    public QueryBuilder setRecordsFrom (int recordsFrom) {

        if (recordsFrom < 0)
            throw new ValueOutOfBoundsException("The value of the recordsFrom" +
                " variable is invalid (recordsFrom: " + ").");

        addParameter(RECORDS_FROM, Integer.toString(recordsFrom));

        return this;
View Full Code Here

        // Below will work, though only 1000 records will be returned.
        else if (MAX_RECORDS_MAX_VALUE <= maxRecords) {
            log.warn(message);
            addParameter(MAX_RECORDS, Integer.toString(maxRecords));
        } else // maxRecords <= 0, which is illegal.
            throw new ValueOutOfBoundsException("The maxRecords value should " +
                "be between 0 and " + MAX_RECORDS + " however the value was " +
                "actually " + maxRecords);

        return this;
    }
View Full Code Here

     *  Example</a>
     */
    public QueryBuilder setRecordsFrom (int recordsFrom) {

        if (recordsFrom < 0)
            throw new ValueOutOfBoundsException("The value of the recordsFrom" +
                " variable is invalid (recordsFrom: " + ").");

        addParameter(RECORDS_FROM, Integer.toString(recordsFrom));

        return this;
View Full Code Here

        // Below will work, though only 1000 records will be returned.
        else if (MAX_RECORDS_MAX_VALUE <= maxRecords) {
            log.warn(message);
            addParameter(MAX_RECORDS, Integer.toString(maxRecords));
        } else // maxRecords <= 0, which is illegal.
            throw new ValueOutOfBoundsException("The maxRecords value should " +
                "be between 0 and " + MAX_RECORDS + " however the value was " +
                "actually " + maxRecords);

        return this;
    }
View Full Code Here

     *  Example</a>
     */
    public QueryBuilder setRecordsFrom (int recordsFrom) {

        if (recordsFrom < 0)
            throw new ValueOutOfBoundsException("The value of the recordsFrom" +
                " variable is invalid (recordsFrom: " + ").");

        addParameter(RECORDS_FROM, Integer.toString(recordsFrom));

        return this;
View Full Code Here

TOP

Related Classes of com.coherentlogic.usaspending.client.core.exceptions.ValueOutOfBoundsException

Copyright © 2018 www.massapicom. 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.