ixnode/php-exception
最新稳定版本:0.1.22
Composer 安装命令:
composer require ixnode/php-exception
包简介
PHP Exception - This library offers some ready to use PHP Exceptions.
README 文档
README
This library offers some ready to use PHP Exceptions.
Exception Classes
Group Array
ArrayGroup Case
CaseGroup Class
ClassName |
Parameter |
Usage |
|---|---|---|
ClassInvalidException |
string $classstring $expected |
Used to indicate that a given or passed class is invalid. |
Group Configuration
ConfigurationName |
Parameter |
Usage |
|---|---|---|
ConfigurationMissingException |
string $hint |
Used to indicate that a configuration or an action is missing. |
Group Db
DbName |
Parameter |
Usage |
|---|---|---|
DbEntityNotFoundException |
string $class |
Used to indicate that a db entity was not found. |
Group File
FileGroup Function
FunctionGroup Parser
ParserName |
Parameter |
Usage |
|---|---|---|
ParserException |
string $parseStringstring $context |
Used to indicate that a given string could not be parsed. |
Group Type
TypeName |
Parameter |
Usage |
|---|---|---|
TypeInvalidException |
string $expected?string $given = null |
Used to indicate that a given or passed variable is the wrong type. |
Installation
composer require ixnode/php-exception
vendor/bin/php-exception -V
php-exception 0.1.0 (12-30-2022 11:41:25) - Björn Hempel <bjoern@hempel.li>
Usage
use Ixnode\PhpException\FileNotFoundException;
throw new FileNotFoundException('path-to-file');
Development
git clone git@github.com:ixnode/php-exception.git && cd php-exception
composer install
composer test
License
This tool is licensed under the MIT License - see the LICENSE file for details
统计信息
- 总下载量: 5.68k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 10
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-12-30