juanchosl/exceptions
最新稳定版本:1.0.6
Composer 安装命令:
composer require juanchosl/exceptions
包简介
A small, lightweight collection of Exceptions that are using the standard status codes for use on requests
关键字:
README 文档
README
Description
A small, lightweight collection of Exceptions that are using the standard status codes for use on requests
Install
composer require juanchosl/exceptions
How use it
Load composer autoload and use the JuanchoSL\Exceptions{EXCEPTION} class
if(!files_exists($full_path)){ throw new NotFoundException("The file '{$full_path}' does not exists"); }
Available Code exceptions
| Code | Class |
|---|---|
| 304 | NotModifiedException |
| 400 | BadRequestException |
| 401 | UnauthorizedException |
| 402 | PaymentRequiredException |
| 403 | ForbiddenException |
| 404 | NotFoundException |
| 405 | MethodNotAllowedException |
| 406 | NotAcceptableException |
| 408 | DestinationUnreachableException |
| 409 | ConflictException |
| 410 | GoneException |
| 412 | PreconditionFailedException |
| 415 | UnsupportedMediaTypeException |
| 416 | RangeNotSatisfiableException |
| 417 | ExpectationFailedException |
| 422 | UnprocessableEntityException |
| 423 | LockedException |
| 424 | FailedDependencyException |
| 428 | PreconditionRequiredException |
| 429 | TooManyRequestsException |
| 451 | UnavailableLegalReasonException |
| 501 | NotImplementedException |
| 503 | ServiceUnavailableException |
统计信息
- 总下载量: 426
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 13
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-09-27