unknown exception error in php
- by fayer
i wanna catch all exceptions thrown in a script and then check if they have a error code 23000.
if they don't i want to rethrow the exception.
here is my code:
function myException($exception) {
/*** If it is a Doctrine Connection Mysql Duplication Exception ***/
if(get_class($exception) === 'Doctrine_Connection_Mysql_Exception'…