jeremykendall/exception-interfaces
Composer 安装命令:
composer require jeremykendall/exception-interfaces
包简介
Exception interfaces inspired by Schindler, Barton, and Beck.
README 文档
README
Exception interfaces for PHP inspired by
- Ralph Schindler's Exception Best Practices in PHP 5.3 blog post
- John Barton's RFC for the 7XX Range of HTTP Status codes - Developer Errors project
- This tweet from Kent Beck
Usage
Simply create your own custom Exception, extend \Exception, and implement one
of the exception interfaces. Done!
<?php namespace Example; use JeremyKendall\Exception\EdgeCases\ThatsJustSilly; class RidiculousException extends \Exception implements ThatsJustSilly {}
See Ralph Schindler's post, linked above, for background.
Installation
Install via Composer.
统计信息
- 总下载量: 18
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-02-07