Hello Friends
I have a problem I do not understand how to solve, need to
capture the error code ($ error-> getCode ()) and put on an equal setFlash
website that I use to set whether a save operation was deleted or modified
successfully or not.
The issue is that when there is an exception for an
inconsistency of BD (Error 2300) I can put a setFlash that says "can not
be deleted because the registration is being used by this table" or
something.
If I can lend a hand to address this.
I tried to use its own error handler class as follows:
class MyExceptionHandler extends ErrorHandler{
public static function handle($error) {
echo $error->getCode();
}
}
Thanks.
I tried to use its own error handler class as follows:
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.