Package org.conventionsframework.exception

Examples of org.conventionsframework.exception.BusinessException


    public static void notContains(String textToSearch, String substring, String message) {
        if (contains(textToSearch, substring)) {
            if (!hasText(message)) {
                message = "assert.notContains";
            }
            throw new BusinessException(getMessage(message));
        }
    }
View Full Code Here


    public static void notEmpty(Object[] array, String message) {
        if (!notEmpty(array)) {
            if (!hasText(message)) {
                message = "assert.notEmpty";
            }
            throw new BusinessException(getMessage(message));
        }
    }
View Full Code Here

    public static void notNull(Object[] array, String message) {
        if (!notNull(array)) {
            if (!hasText(message)) {
                message = "assert.notNull";
            }
            throw new BusinessException(getMessage(message));
        }
    }
View Full Code Here

    public static void notEmpty(Collection<?> collection, String message) {
        if (collection == null || collection.isEmpty()) {
            if (!hasText(message)) {
                message = "assert.notEmpty";
            }
            throw new BusinessException(getMessage(message));
        }
    }
View Full Code Here

    public static void notEmpty(Map<?, ?> map, String message) {
        if (!notEmpty(map.entrySet().toArray())) {
            if (!hasText(message)) {
                message = "assert.notEmpty";
            }
            throw new BusinessException(getMessage(message));
        }
    }
View Full Code Here

TOP

Related Classes of org.conventionsframework.exception.BusinessException

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.