@@ -0,0 +1,1052 @@
+package nctu.fintech.appmate.core;%0A%0Aimport android.util.Log;%0A%0Aimport java.io.IOException;%0A%0A/**%0A * An exception indicate that the response result is not expected.%0A */%0Apublic class UnexpectedResponseException extends IOException %7B%0A%0A    private int mCode;%0A    private String mMessage;%0A    private String mBody;%0A%0A    UnexpectedResponseException(int code, String message, String body) %7B%0A        super(%22unexpected response result: %22 + code + message);%0A        Log.e(this.getClass().getSimpleName(), %22unexpected response code: %22 + code);%0A%0A        mCode = code;%0A        mMessage = message;%0A        mBody = body;%0A    %7D%0A%0A    /**%0A     * get response code%0A     *%0A     * @return response code%0A     */%0A    public int code() %7B%0A        return mCode;%0A    %7D%0A%0A    /**%0A     * get response message (correspond to %7B@link #code()%7D%0A     *%0A     * @return response message%0A     */%0A    public String message() %7B%0A        return mMessage;%0A    %7D%0A%0A    /**%0A     * get response body%0A     *%0A     * @return response body%0A     */%0A    public String body() %7B%0A        return mBody;%0A    %7D%0A%0A%7D%0A

add an exception for the situaton that the response result is not expected