- 1
- 0
- 约7千字
- 约 35页
- 2017-11-17 发布于河南
- 举报
第6讲面向对象II
6.6.3 异常 –综合示例 abstract class CustomException extends Exception implements IException { protected $message=Unknown exception; private $string; protected $code=0; protected $file; protected $line; private $trace; 6.6.3 异常 –综合示例 public function __construct($message=null,$code=0) { if(!$message) { throw new $this(Unknown-----.get_class($this)); } parent::__construct($message,$code); } public function __toString() { return get_class($this).{$this-message in {$this-file}({$this-line})br.{$this-getTraceAsString()}; } } 6.6.3 异常 –综合示例 class Test
您可能关注的文档
- 上海市计算机等级考试二级(Java)复习题.docx
- J2ME考试复习试题答案.doc
- JAVA考试复习题2 (含有答案).doc
- 注解annotation的详细介绍.doc
- struts和ajax.doc
- Struts教案(1-3课时).doc
- JAVA复习要点总结.doc
- JAVA考试复习题0-7.doc
- JAVA图形界面设计(二).doc
- VJAVA复习.doc
- 2025年下半年小学教师资格考试简答题汇总.pdf
- 护理教学比赛资源整合.pptx
- 2022泰和安消防 JTGB-HM-TX3H01 JTGB-HM-TX3H02 TGB-HM-TX3H03 系列点型红外火焰探测器.docx
- 2025年驾驶证资格考试最新最全交通标志大全.pdf
- 护理教学理念:更新与发展.pptx
- 2025年新驾考科目一巧记速记口诀(全国通用).pdf
- 2025年一级建造师《项目管理》黄金预测考点【打印版】.pdf
- 证券公司高级管理人员资质测试章节练习-第一部分综合类第六章至七章:证券投资基金法、信托法.pdf
- 护理教学研究:方法与成果.pptx
- 麻纺车间设备更新准则.docx
原创力文档

文档评论(0)