Closed tamagokun closed 12 years ago
Currently exceptions are handled via a try..catch block wrapping $app->call($env)
try..catch
$app->call($env)
It might be better to use something like set_error_handler to have a more global controle over how errors are handled.
set_error_handler
http://php.net/manual/en/function.set-error-handler.php
This works pretty well, but there are issues with Router not catching the proper exceptions. This stuff needs to get streamlined with middleware.
Currently exceptions are handled via a
try..catch
block wrapping$app->call($env)
It might be better to use something like
set_error_handler
to have a more global controle over how errors are handled.