How to intercept all Zend_DB_Adapter Errors?

HiddenEvil

New Member
I'm using Zend DB Adapter class from Zend Framework in a non-zend web application (don't need the whole framework). I need to intercept/handle all DB exceptions to create a custom error page. By default in case of any errors the adapter shows its own plain page with error message like "PDO Exception...".Is there a way to customize this error output without having "try...except" operators around every single database request?Thank you.
 
Back
Top