package com.angcyo.uiview.net;

/**
 * Copyright (C) 2016,深圳市红鸟网络科技股份有限公司 All rights reserved.
 * 项目名称：
 * 类的描述：
 * 创建人员：Robi
 * 创建时间：2016/12/26 18:23
 * 修改人员：Robi
 * 修改时间：2016/12/26 18:23
 * 修改备注：
 * Version: 1.0.0
 */
public class RException extends RuntimeException {


    Throwable throwable;
    /**
     * code : 1039
     * msg : 验证码未发送或者已过期,请重新发送
     * more :
     */

    private int code;
    private String msg;
    private String more;

    /**
     * 临时变量
     */
    private String temp;

    public RException(int code, String msg, String more) {
        this.code = code;
        this.msg = msg;
        this.more = more;
    }

    public RException(int code, String msg) {
        this(code, msg, "no more");
    }

    @Override
    public String getMessage() {
        return "[" + code + "]" + msg + ":" + throwable;
    }

    public Throwable getThrowable() {
        return throwable;
    }

    public RException setThrowable(Throwable throwable) {
        this.throwable = throwable;
        return this;
    }

    public String getMsg() {
        return msg;
    }

    public String getMore() {
        return more;
    }

    public int getCode() {
        return code;
    }

    public String getTemp() {
        return temp;
    }

    public void setTemp(String temp) {
        this.temp = temp;
    }
}

@@ -388,24 +388,28 @@
 ate int code
+ = 0
 ;%0A    privat
@@ -416,24 +416,29 @@
 e String msg
+ = %22%22
 ;%0A    privat
@@ -450,16 +450,21 @@
 ing more
+ = %22%22
 ;%0A%0A    /
@@ -696,24 +696,24 @@
 ring msg) %7B%0A
-
         this
@@ -739,24 +739,845 @@
 e%22);%0A    %7D%0A%0A
+    public String toJsonString() %7B%0A        StringBuilder builder = new StringBuilder();%0A        builder.append(%22%7B%22);%0A%0A        builder.append(%22%5C%22%22);%0A        builder.append(%22code%22);%0A        builder.append(%22%5C%22%22);%0A        builder.append(%22:%22);%0A        builder.append(code);%0A        builder.append(%22,%22);%0A%0A        builder.append(%22%5C%22%22);%0A        builder.append(%22msg%22);%0A        builder.append(%22%5C%22%22);%0A        builder.append(%22:%22);%0A        builder.append(%22%5C%22%22);%0A        builder.append(msg);%0A        builder.append(%22%5C%22%22);%0A        builder.append(%22,%22);%0A%0A        builder.append(%22%5C%22%22);%0A        builder.append(%22more%22);%0A        builder.append(%22%5C%22%22);%0A        builder.append(%22:%22);%0A        builder.append(%22%5C%22%22);%0A        builder.append(more);%0A        builder.append(%22%5C%22%22);%0A%0A        builder.append(%22%7D%22);%0A        return builder.toString();%0A    %7D%0A%0A
     @Overrid

fix base