jalismrs / common.exception
添加异常类
此包的官方仓库似乎已不存在,因此该包已被冻结。
1.0.2
2021-03-04 10:49 UTC
Requires
- php: ^7.4 || ^8.0
Requires (Dev)
- composer/package-versions-deprecated: *
- phpunit/phpunit: 9.4.2
- roave/security-advisories: dev-master
README
添加异常类
AppExceptionEntityExceptionEntity\NotFoundExceptionServiceExceptionService\ApiException
NOTES
Entity\NotFoundException:$code总是 404
测试
phpunit 或 vendor/bin/phpunit
覆盖率报告将在 var/coverage 中可用
使用
Entity\NotFoundException
use Jalismrs\Common\Exception\Entity\NotFoundException; throw NotFoundException::create( SomeClass::class, 'some identifier' );