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

io.leopard.httpnb.HttpException Maven / Gradle / Ivy

Go to download

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();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy