You are trying to catch an Exception like this and it never gets caught?
<?php try { // whatever you do here // probably, you use some library } catch(Exception $e) { // this never works } ?>
Most likely, your app is in some namespace. This means with the above code you only catch exceptions of the namespace of your app, not any exception. The solution is easy, just add a backslash:
try { // whatever } catch(\Exception $e) { // this should work // note the backslash! }
Hope this helps somebody.