tamagokun / rackem

Rack implementation in PHP with built-in web server for development.
http://tamagokun.github.io/rackem/
MIT License
63 stars 3 forks source link

Better exception / error handling #1

Closed tamagokun closed 12 years ago

tamagokun commented 12 years ago

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.

tamagokun commented 12 years ago

http://php.net/manual/en/function.set-error-handler.php

tamagokun commented 12 years ago

This works pretty well, but there are issues with Router not catching the proper exceptions. This stuff needs to get streamlined with middleware.