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

com.xiaoleilu.ucloud.exception.ParamException Maven / Gradle / Ivy

package com.xiaoleilu.ucloud.exception;

import com.xiaoleilu.hutool.StrUtil;

/**
 * 参数异常
 * @author Looly
 *
 */
public class ParamException extends RuntimeException{
	private static final long serialVersionUID = 1L;

	public ParamException(Throwable e) {
		super(e);
	}
	
	public ParamException(String message) {
		super(message);
	}
	
	public ParamException(String messageTemplate, Object... params) {
		super(StrUtil.format(messageTemplate, params));
	}
	
	public ParamException(String message, Throwable throwable) {
		super(message, throwable);
	}
	
	public ParamException(Throwable throwable, String messageTemplate, Object... params) {
		super(StrUtil.format(messageTemplate, params), throwable);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy