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

cn.luues.tool.template.TemplateException Maven / Gradle / Ivy

There is a newer version: 2.0.1.RELEASE
Show newest version
package cn.luues.tool.template;


import cn.luues.tool.core.exceptions.ExceptionUtil;
import cn.luues.tool.core.util.StrUtil;

/**
 * 模板异常
 * 
 * @author Mr-Wu
 */
public class TemplateException extends RuntimeException {
	private static final long serialVersionUID = 8247610319171014183L;

	public TemplateException(Throwable e) {
		super(ExceptionUtil.getMessage(e), e);
	}

	public TemplateException(String message) {
		super(message);
	}

	public TemplateException(String messageTemplate, Object... params) {
		super(StrUtil.format(messageTemplate, params));
	}

	public TemplateException(String message, Throwable throwable) {
		super(message, throwable);
	}

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy