Skip to content

推荐封装错误调用栈,方便返回 "trace:stack" 字段,用来快速排查问题原因 #14

@TommyLemon

Description

@TommyLemon

Log.DEBUG = true 时返回

http://apijson.cn/api/?type=JSON&json={"User":{"ids": 82001},"[]":{"Comment":{"userId@":"User%2Fid"}}}
image

这个字段仅仅用来查看错误栈信息,不用来解析,所以数组内格式不需要和 Java 一致,内部简单地使用字符串即可,例如

"trace:stack": [
  "sun.reflect.NativeConstructorAccessorImpl",
  "apijson.orm.AbstractParser"
]

相关推荐库
https://github.com/pkg/errors

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions