io.leopard.httpnb.HttpException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of leopard-boot-httpnb Show documentation
Show all versions of leopard-boot-httpnb Show documentation
Http操作类库。支持Get、Post、文件上传等常用操作。可在TopNB查看耗时统计信息。
The newest version!
package io.leopard.httpnb;
public class HttpException extends RuntimeException {
private static final long serialVersionUID = 1L;
private long timeout;
public long getTimeout() {
return timeout;
}
public void setTimeout(long timeout) {
this.timeout = timeout;
}
public HttpException(Throwable cause, HttpHeader header) {
super(cause.getMessage(), cause);
this.setTimeout(header.getTimeout());
}
@Override
public void printStackTrace() {
super.printStackTrace();
}
}