[Corona] Catch exceptions in the FrontController

Review Request #554 — Created May 7, 2018 and submitted — Latest diff uploaded

pprkut
Lunr
pprkut:exceptions
576
df96749...
lunr

Catch exceptions in a RequestResultHandler class, which can be used by either a FrontController or a Controller class.
The RequestResultHandler sets the proper response codes, which should remove boiler plate code from Controllers.

Unit tests

src/Lunr/Corona/Exceptions/Tests/RequestedRangeNotSatisfiableExceptionBaseTest.php
src/Lunr/Corona/Exceptions/Tests/UnauthorizedExceptionBaseTest.php
src/Lunr/Corona/Exceptions/Tests/Helpers/HttpExceptionTest.php
src/Lunr/Corona/Tests/FrontControllerBaseTest.php
src/Lunr/Corona/Tests/FrontControllerDispatchTest.php
src/Lunr/Corona/Tests/FrontControllerTest.php
src/Lunr/Corona/Tests/RequestResultHandlerBaseTest.php
src/Lunr/Corona/Tests/RequestResultHandlerHandleRequestTest.php
src/Lunr/Corona/Tests/RequestResultHandlerSetResultTest.php
src/Lunr/Corona/Tests/RequestResultHandlerTest.php
tests/phpunit.xml
This diff has been split across 2 pages: < 1 2
Loading...