package com.jqmobile.core.http2;
/**
* <p>Http请求异常</p>
*
* <p>Copyright: 版权所有 (c) 2002 - 2015<br>
* Company: 久其</p>
*
* @author modi
* @version 2014年3月17日
*/
public class HttpException extends Exception {
/**
* 连接超时
*/
public static final int TIMEOUT=1;
/**
* 连接错误
*/
public static final int CONNECTION_ERROR=2;
/**
* 请求拒绝
*/
public static final int REQUEST_REFUSE=3;
/**
* SESSION过期
*/
public static final int SESSION_TIMEOUT=4;
/**
* 未指定session异常(登录方法除外)
*/
public static final int SESSION_NULL=5;
/**
*
*/
private static final long serialVersionUID = -4667964941838691622L;
private int code;
public HttpException(){
}
public HttpException(int code){
this.code=code;
}
public HttpException(int code, String massage){
super(massage);
this.code = code;
}
public int getCode() {
return code;
}
}