20200217-- Exception Handling

If the code is abnormal, you do not want to use try / catch capture, service or controller

The problem
if the operation failed, and only prompt, indistinguishable specific error
code redundancy bad maintenance

The problem is solved
first throw, then write the normal logic

Here Insert Picture Description
Here Insert Picture Description

Foreseeable abnormal

Published 735 original articles · won praise 42 · views 70000 +

Guess you like

Origin blog.csdn.net/qq_36344771/article/details/104357185