package com.infogen.http.exception;

import java.io.IOException;

/**
 * response.isSuccessful()为false的错误
 * 
 * @author larry/larrylv@outlook.com/创建时间 2015年5月11日 上午11:44:55
 * @since 1.0
 * @version 1.0
 */
public class HTTP_Fail_Exception extends IOException {
	private static final long serialVersionUID = 153970941852883330L;
	private Integer code;
	private String message;

	public HTTP_Fail_Exception(Integer code, String message) {
		super();
		this.code = code;
		this.message = message;
	}

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

}

@@ -725,10 +725,247 @@
 ge;%0A%09%7D%0A%0A
+%09/*%0A%09 * (non-Javadoc)%0A%09 * %0A%09 * @see java.lang.Throwable#toString()%0A%09 */%0A%09@Override%0A%09public String toString() %7B%0A%09%09return %22HTTP%E8%B0%83%E7%94%A8%E6%97%B6response.isSuccessful()%E5%87%BA%E7%8E%B0%E4%B8%BAfalse%E7%9A%84%E9%94%99%E8%AF%AF code:%22.concat(code.toString()).concat(%22 - message:%22.concat(message));%0A%09%7D%0A%0A
 %7D%0A

修改http调用非2xx时的报错描述