coderockr/http-exceptions

Http Exceptions

dev-master 2017-10-31 11:02 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