package com.codeest.geeknews.model.http.exception; /** * Created by codeest on 2016/8/4. */ public class ApiException extends Exception{ private int code; public ApiException(String msg) { super(msg); } public ApiException(String msg, int code) { super(msg); this.code = code; } public int getCode() { return code; } public void setCode(int code) { this.code = code; } }