无法反序列化异常模型

时间:2020-07-17 21:24:49

标签: json exception serialization

首先,我可以序列化异常模型:

{
    "data": null,
    "success": false,
    "message": null,
    "exception": {
        "ClassName": "System.DivideByZeroException",
        "Message": "Attempted to divide by zero.",
        "Data": null,
        "InnerException": null,
        "HelpURL": null,
        "StackTraceString": "   at -------.cs:line 63",
        "RemoteStackTraceString": null,
        "RemoteStackIndex": 0,
        "ExceptionMethod": null,
        "HResult": -2147352558,
        "Source": "-----",
        "WatsonBuckets": null
    }
}

但是此模型不反序列化,为什么只有两个模型反序列化? enter image description here

0 个答案:

没有答案