Home  >  Article  >  Backend Development  >  php exception错误处理

php exception错误处理

WBOY
WBOYOriginal
2016-06-13 13:24:59761browse

php exception异常处理
throw new 自定义exception
抛出异常后,后面代码不再执行,查找能与之匹配的第一个catch

如果有一个没有被扑捉,都会产生严重错误,并输出

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