Home  >  Article  >  Backend Development  >  How to solve the most frequent code exception.

How to solve the most frequent code exception.

WBOY
WBOYOriginal
2016-12-01 00:25:19821browse

A piece of logic is correct no matter how you look at it, but one or two people may have problems during use.
It would be unrealistic to check the logs

Reply content:

A piece of logic is correct no matter how you look at it, but one or two people may have problems during use.
It would be unrealistic to check the logs

<code>new Exception 或@</code>

<code>try {
} catch(\Exception $e) {
}</code>

If there is a problem, just check the log. Why is it unrealistic to check the log? It may be a bug triggered under specific conditions.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn