fuel/fuel — pull request #289 by axelitus (2013-08-06 20:50:01+00:00)
Title: Feature 500 handler to handle all non-handled Exceptions in production environment

FuelPHP handles 404 errors, but there is no way, except by modifying the public/index.php file, but why not allow FuelPHP by default to handle such errors? So instead of displaying a generic "Ooops" page with no information, let the developer display an error page just like with the 404 errors.

This would also be an additional "security feature" for servers which are incorrectly configured to show errors, because this "hook" works only for FuelPHP production environment (as while developing an testing we need to see those Exceptions). So just setting your FUEL_ENV to production guards you against Exception errors leaking to the end user.