com.github.xphsc.convert.ConvertException Maven / Gradle / Ivy
package com.github.xphsc.convert;
import com.github.xphsc.exception.ExceptionUtil;
import com.github.xphsc.util.StringUtil;
/**
* Created by ${huipei.x} on 2017-5-25.
*/
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(StringUtil.format(messageTemplate, params));
}
public ConvertException(String message, Throwable throwable) {
super(message, throwable);
}
public ConvertException(Throwable throwable, String messageTemplate, Object... params) {
super(StringUtil.format(messageTemplate, params), throwable);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy