Skip to content

API全局异常处理 #11

Description

@baiyunchen
  • 数据验证失败后,自动返回400错误,并将异常包装成特定格式
  • NotFound异常自动404处理,并包装成特定格式返回
  • 其他系统异常自动500处理,并包装成特定格式返回
  • 发生异常时,全局记录日志

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions