coderockr / http-exceptions
HTTP 异常
dev-master
2017-10-31 11:02 UTC
This package is not auto-updated.
Last update: 2024-09-19 05:31:17 UTC
README
与 HTTP 状态码相关的 PHP 异常
使用方法
try { $this->foo(); } catch (\Exception $exception) { throw new Exception\NotFoundException("foo not found :c", $exception); }
基于 Pavel Sterba 的作品 - https://github.com/pavelsterba/http-exceptions 感谢 :D