exceptional:PHP的更好的例外

时间:2021-03-18 17:49:04
【文件属性】:
文件名称:exceptional:PHP的更好的例外
文件大小:11KB
文件格式:ZIP
更新时间:2021-03-18 17:49:04
PHP 极好的 PHP的更好的例外 Exceptional旨在提供一种从根本上增强的Exception框架,该框架将Exception的含义与基础实现功能分离开来。 异常异常可用于极大地简化代码中生成和引发错误的方式,尤其是在编写共享库时。 将预期异常的名称作为静态调用传递给Exceptional基类,并具有一个基于最合适PHP Exception类以及一组相关接口创建的动态异常类,以便于捕获。 use DecodeLabs \ Exceptional ; // Create OutOfBoundsException throw Exceptional :: OutOfBounds ( 'This is out of bounds' ); // Implement multiple interfaces throw Exceptional ::{ 'NotFound,BadMethodCall
【文件预览】:
exceptional-develop
----src()
--------Exceptional.php(979B)
--------Exceptional()
--------helpers.php(172B)
----LICENSE(1KB)
----composer.json(1KB)
----.github()
--------pull_request_template.md(112B)

网友评论