cn.geektool.core.convert.ConvertException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of geektool-core Show documentation
Show all versions of geektool-core Show documentation
geektool核心,包括集合、字符串、Bean等工具
The newest version!
package cn.geektool.core.convert;
import cn.geektool.core.exceptions.ExceptionUtil;
import cn.geektool.core.util.StrUtil;
/**
* 转换异常
* @author xiaoleilu
*/
public class ConvertException extends RuntimeException{
private static final long serialVersionUID = 4730597402855274362L;
public ConvertException(Throwable e) {
super(ExceptionUtil.getMessage(e), e);
}
public ConvertException(String message) {
super(message);
}
public ConvertException(String messageTemplate, Object... params) {
super(StrUtil.format(messageTemplate, params));
}
public ConvertException(String message, Throwable throwable) {
super(message, throwable);
}
public ConvertException(Throwable throwable, String messageTemplate, Object... params) {
super(StrUtil.format(messageTemplate, params), throwable);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy