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

com.jd.httpservice.HttpStatusException Maven / Gradle / Ivy

There is a newer version: 2.1.4.RELEASE
Show newest version
package com.jd.httpservice;

/**
 * 用于描述调用请求发生的 http 状态码400以上的错误;
 * 
 * @author haiq
 *
 */
public class HttpStatusException extends HttpServiceException {
	
	private static final long serialVersionUID = 9123750807777784421L;

	private int httpCode;
	
//	private String content;
//	
//	public HttpStatusException(int httpCode, String message) {
//		this(httpCode, message, null);
//	}
	
	public HttpStatusException(int httpCode, String message) {
		super(message);
		this.httpCode = httpCode;
//		this.content = content;
	}

	/**
	 * http 状态吗;
	 * @return
	 */
	public int getHttpCode() {
		return httpCode;
	}

//	public String getContent() {
//		return content;
//	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy