随时随地技术实战干货,获取项目源码、学习资料,请关注源代码社区公众号(ydmsq666) AssertionError继承Error,提供了多个构造方法,代码如下: /** Licensed to the Apache Software Foundation (ASF) under one or more* contributor license agreements. See th
Throwable work on PHP 7.x. Exception work on PHP 5.x. 参考链接: https://www.php.net/manual/en/language.errors.php7.php <?phptry {// Code that may throw an Exception or Error.} catch (Throwable $t