coderockr/http-exceptions

dev-master 2017-10-31 11:02 UTC

This package is not auto-updated.

Last update: 2024-10-31 06:00:42 UTC


README

PHP Exceptions related to HTTP Status Codes

Using:

try {
   $this->foo();
} catch (\Exception $exception) {
   throw new Exception\NotFoundException("foo not found :c", $exception);
}

based on the work of Pavel Sterba - https://github.com/pavelsterba/http-exceptions Thanks :D

Usage Suggestion