php中的Throwables和ParseError
2024-09-04 17:28:55
<?php //Throwables //ParseError try { include 'config.php'; } catch (\ParseError $e) { echo 'ParseError handling'; echo '<br/>'; } class Address { private $customer; public function __construct(Customer $customer) { $this->customer = $customer; } } $customer = new stdClass(); try { $address = new Address($customer); } catch (\Throwable $t) { echo 'Throwable handling'; echo '<br/>'; } finally { echo 'cleanup'; echo '<br/>'; } ?>
输出
ParseError handling Throwable handling cleanup
最新文章
- sql例子
- virtualenv中ImportError: No module named django
- select()
- 为什么删不掉date模块
- USACO3.23Spinning Wheels
- ubuntu 12.04 编译安装 nginx
- iOS ui界面vtf 开发
- iOS 删除黑色边框线导航栏&;amp;删除搜索框的阴影边界线和中黑色文本输入框 - 解
- 201521123116 《java程序设计》第十二周学习总结
- 学习笔记TF056:TensorFlow MNIST,数据集、分类、可视化
- (转)30 个实例详解 TOP 命令
- Oracle EBS OPM 事务处理
- Git Pull Failed: cannot lock ref &#39;refs/remotes/origin/xxxxxxxx&#39;: unable to resolve ref
- python之模块chunk,了解即可
- 开发者如何更好的选择和适应NoSQL的5个阶段
- Python入门之logging日志模块以及多进程日志
- http post发送请求
- 在Powerdesigner中创建概念数据模型
- 《解读window核心编程》 之 字符和字符串处理方式
- HighCharts常用设置
热门文章
- ASP.NET Core使用Docker-Compose实现多容器应用部署
- QuantLib 金融计算——收益率曲线之构建曲线(4)
- 实现一个特殊的栈,要求push,poll , getMin方法时间复杂度都是O(N)
- golang面对对象
- CSP2019退役记
- SQL系列(十一)—— 函数(function)
- webUI框架miniUI,easyUI,extJS,Bootstrap简介及简单部署
- 【mysql】获取某个表所有列名【mybatis】
- (8)ASP.NET Core 中的MVC路由一
- RabbitMQ学习之Routing(4)