Some of my exceptions don't seem to be getting caught. Can somebody help?
I'm just doing some test inserts using a Zend_Db object that are meant
to fail. Sometimes, the exceptions are caught and the error controller
is displayed. Other times, I get fatal errors, as shown below.
*Fatal error*: Uncaught exception 'Zend_Db_Statement_Exception' with
message 'SQLSTATE[42P01]: Undefined table: 7 ERROR: relation
"system_log" does not exist' in
/directory/application/library/Zend/Db/Statement/Pdo.php:238 Stack
trace: #0 /directory/application/library/Zend/Db/Statement.php(283):
Zend_Db_Statement_Pdo->_execute(Array) #1
/directory/application/library/Zend/Db/Adapter/Abstract.php(406):
Zend_Db_Statement->execute(Array) #2
/directory/application/library/Zend/Db/Adapter/Pdo/Abstract.php(206):
Zend_Db_Adapter_Abstract->query('INSERT INTO "sy...', Array) #3
/directory/application/library/Zend/Db/Adapter/Abstract.php(484):
Zend_Db_Adapter_Pdo_Abstract->query('INSERT INTO "sy...', Array) #4
/directory/html/index2.php(28):
Zend_Db_Adapter_Abstract->insert('system_log', Array) #5 {main} thrown
in */directory/application/library/Zend/Db/Statement/Pdo.php* on line *238
*Can somebody take a guess into what could be happening? How can I make
catching the exceptions more consistent?
$db->insert in bootstrap file gives fatal error.
$db->insert in action control correctly catches.
$log->warn('test') with incorrect event items causes fatal error everywhere
Any help is appreciated! TIA.
Arthur