Package krati.store

Examples of krati.store.InvalidDataException


     * @param size     - the size
     * @param expected - the expected size
     */
    public static void checkSize(int size, int expected) {
        if(size != expected) {
            throw new InvalidDataException("Invalid size: " + size  + " expected: " + expected);
        }
    }
View Full Code Here


     * @param keySize  - the key size
     * @param expected - the expected size
     */
    public static void checkKeySize(int keySize, int expected) {
        if(keySize != expected) {
            throw new InvalidDataException("Invalid key size: " + keySize  + " expected: " + expected);
        }
    }
View Full Code Here

     * @param valueSize - the value size
     * @param expected  - the expected size
     */
    public static void checkValueSize(int valueSize, int expected) {
        if(valueSize != expected) {
            throw new InvalidDataException("Invalid value size: " + valueSize  + " expected: " + expected);
        }
    }
View Full Code Here

     * @param dataSize - the data size
     * @param expected - the expected size
     */
    public static void checkDataSize(int dataSize, int expected) {
        if(dataSize != expected) {
            throw new InvalidDataException("Invalid data size: " + dataSize  + " expected: " + expected);
        }
    }
View Full Code Here

     * @param size    - the size
     * @param maxSize - the max size
     */
    public static void checkMaxSize(int size, int maxSize) {
        if(size < 0 || size > maxSize) {
            throw new InvalidDataException("Invalid size: " + size  + " max: " + maxSize);
        }
    }
View Full Code Here

     * @param keySize    - the key size
     * @param maxKeySize - the max key size
     */
    public static void checkMaxKeySize(int keySize, int maxKeySize) {
        if(keySize < 0 || keySize > maxKeySize) {
            throw new InvalidDataException("Invalid key size: " + keySize  + " max: " + maxKeySize);
        }
    }
View Full Code Here

     * @param valueSize    - the value size
     * @param maxValueSize - the max value size
     */
    public static void checkMaxValueSize(int valueSize, int maxValueSize) {
        if(valueSize < 0 || valueSize > maxValueSize) {
            throw new InvalidDataException("Invalid value size: " + valueSize  + " max: " + maxValueSize);
        }
    }
View Full Code Here

     * @param dataSize    - the data size
     * @param maxDataSize - the max data size
     */
    public static void checkMaxDataSize(int dataSize, int maxDataSize) {
        if(dataSize < 0 || dataSize > maxDataSize) {
            throw new InvalidDataException("Invalid data size: " + dataSize  + " max: " + maxDataSize);
        }
    }
View Full Code Here

TOP

Related Classes of krati.store.InvalidDataException

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.