package com.joker.fourfun.net;

/**
 * Created by joker on 2016/11/28.
 */

public class ApiException extends RuntimeException {
    public static final int MESSAGE_NOT_FOUND = 100;

    public ApiException(int resultCode) {
        this(getApiExceptionMessage(resultCode));
    }

    public ApiException(String detailMessage) {
        super(detailMessage);
    }

    private static String getApiExceptionMessage(int code) {
        String message = "";
        switch (code) {
            case MESSAGE_NOT_FOUND:
                message = "服务器数据错误";
                break;
            default:
                message = "未知错误";

        }

        return message;
    }
}

@@ -122,16 +122,31 @@
 ption %7B%0A
+    // %E6%9C%8D%E5%8A%A1%E5%99%A8%E6%95%B0%E6%8D%AE%E9%94%99%E8%AF%AF%0A
     publ
@@ -245,13 +245,8 @@
     
-this(
 getA
@@ -275,17 +275,16 @@
 ultCode)
-)
 ;%0A    %7D%0A
@@ -546,23 +546,26 @@
 sage = %22
-%E6%9C%8D%E5%8A%A1%E5%99%A8%E6%95%B0%E6%8D%AE%E9%94%99%E8%AF%AF
+%E5%A5%BD%E5%83%8F%E5%87%BA%E7%8E%B0%E4%BA%86%E4%B8%80%E7%82%B9%E9%97%AE%E9%A2%98%E5%93%A6
 %22;%0A     
@@ -637,17 +637,16 @@
 %22%E6%9C%AA%E7%9F%A5%E9%94%99%E8%AF%AF%22;%0A
-%0A
         

change error message