EMS Exception Handler
2017-08-11 00:19:24 0 举报
EMS Message and Exception Process Design
作者其他创作
大纲/内容
ExceptionHandler catch BaseException or BaseRuntimeException
RepositoryLayer
JPA ValidatorRequestValidationIntercepterhas errors?
Request
No
ControllerLayer
Service logic has exception?
ThrowBaseException or BaseRuntimeException with message key
return ResponseEntity with business message and bad request status to frrontend
return success ResponseEntity to frontend
return ResponseEntity with field error messages and bad request status to frrontend
ThrowMutiMessageException with field errors
ServiceLayer
Yes
ExceptionHandler catch MutiMessageException
收藏
0 条评论
下一页