Hi,

As for me, I create my own DB driver class (extends of DboMysql) that I 
used in database.php
This class contains a showQuery methode, which is called by Cake to 
display any DB errors. I use an array ( ErrNumber => function_to_call) 
initialized in each model. If an error occurs and it's in this array, I 
call the function associated to. Otherwise, I call the parent:showQuery().

The function associated is as well declare in each model.

If it can help you....


SajjadRaza a écrit :
> hi
> can any one tell me abt the built in mechanism of
> exception handling in cake php
> thanks.
>
> >
>
>   




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to