tdt/exceptions
最新稳定版本:v1.4
Composer 安装命令:
composer require tdt/exceptions
包简介
An exception package, made extensible through an ini file.
关键字:
README 文档
README
A repository to create and return exceptions according to an ini file.
Usage
You can include this in your PHP project through the PHP composer. Using TDTExceptions is very easy:
throw new TDTException(452,array(parameter1, parameter2));
This will cause the class TDTException look in the exceptions.ini file. From that file it will extract the necessary information such documentation, and message to create a nice exception. In the exceptions.ini file you can see the message can accept parameters. These are the parameters you pass along with the constructor in the array as second parameter. In the ini file you can address these parameters by $1,$2,...
统计信息
- 总下载量: 951
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: AGPLv3
- 更新时间: 2013-01-19