com.base4j.util.exceptions.HttpException Maven / Gradle / Ivy
The newest version!
package com.base4j.util.exceptions;
import com.base4j.util.StrUtil;
/**
* HTTP异常
*
* @author xxx
*/
public class HttpException extends RuntimeException {
private static final long serialVersionUID = 8247610319171014183L;
public HttpException(Throwable e) {
super(e.getMessage(), e);
}
public HttpException(String message) {
super(message);
}
public HttpException(String messageTemplate, Object... params) {
super(StrUtil.format(messageTemplate, params));
}
public HttpException(String message, Throwable throwable) {
super(message, throwable);
}
public HttpException(Throwable throwable, String messageTemplate, Object... params) {
super(StrUtil.format(messageTemplate, params), throwable);
}
}