HACKER
TALK
Home
Channels
beta
Bookmarks
Messages
Notifications
Sign In
Comment
想问下各位后端错误处理怎么做比较优雅?
看了一些大厂的接口,不少都是直接 200 返回的,然后带个错误码。业务逻辑上是直接 service 层包装一下直接返回还是直接抛 Exception 的好?
Akitora-R
·
3 years ago
RuntimeException+1
Reply
Report
Akitora-R
Joined 3 years ago
Follow
Message