All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.joe.easysocket.client.exception.NoRequireParamException Maven / Gradle / Ivy

The newest version!
package com.joe.easysocket.client.exception;

/**
 * 缺少必要的参数异常
 *
 * @author joe
 */
public class NoRequireParamException extends SystemException {
    /**
     * 默认构造器
     * @param args
     * 参数数组
     */
    public NoRequireParamException(String... args) {
        super(convert(args));
    }

    private static String convert(String... args) {
        StringBuilder arg = new StringBuilder("缺少必要的参数:");
        for (String str : args) {
            if (str == null) {
                continue;
            }
            arg.append(str).append("、");
        }
        return arg.toString().substring(0, arg.length() - 1);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy