美文网首页
阿里巴巴的 fastjson JSONException

阿里巴巴的 fastjson JSONException

作者: 路得自己走 | 来源:发表于2019-10-20 16:27 被阅读0次

try catch 了是数据解析发现还是崩溃 ,最后看了下源码发现 JSONException 是继承
RuntimeException ,不知道作者为什么这么做。

package com.alibaba.fastjson;

/**

  • @author wenshao[szujobs@hotmail.com]
    */
    @SuppressWarnings("serial")
    public class JSONException extends RuntimeException {

    public JSONException() {
    super();
    }

    public JSONException(String message) {
    super(message);
    }

    public JSONException(String message, Throwable cause) {
    super(message, cause);
    }
    }

相关文章

网友评论

      本文标题:阿里巴巴的 fastjson JSONException

      本文链接:https://www.haomeiwen.com/subject/makamctx.html