Today, I wrote my first code to saveAll() from form input and, knowing
I probably didn't do it right the first time, I wrapped my save
attempt in a try/catch block. Imagine my surprise when everything
returned success messages, but nothing actually got saved.  A look at
the source indicated that exceptions aren't being thrown which I
assume is due to PHP4.x compatibility issues.

Since I can't use try/catch, what's the "cake way" to catch
exceptions? I see the "Error Handling" section in the docs, but do I
really need to write a custom error handler just to determine that an
error occurred? I see how to "throw" an error using $this->cakeError
(), but it seems like there has to be some built-in capability to
catch them; I'm just not seeing it.

Thanks.

Rob
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
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