coderockr/http-exceptions

Http Exceptions

Maintainers

Package info

github.com/Coderockr/HttpException

Homepage

pkg:composer/coderockr/http-exceptions

Statistics

Installs: 3 800

Dependents: 0

Suggesters: 0

Stars: 6

Open Issues: 0

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

This package is not auto-updated.

Last update: 2026-03-05 12:06:09 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