[FLOW3-general] Catching PDO Exceptions
Christian Müller
christian.mueller at typo3.org
Fri Oct 26 14:49:34 CEST 2012
Hi Martin,
you should take care of that before trying to persist, catching the PDO
Exception wouldn't be good. Better try to verify if this is a duplicate.
Cheers,
Christian
On 26/10/12 11:04, Martin wrote:
> Dear List,
>
> in my Model I have an @Identity for two columns.
>
> If I try two insert the same key twice, like 'Summer' and '2012' I run
> into an PDO Exception which is ok.
>
> But how do I catch a PDO exception?
>
> I don't wonna show this exception to the users.
>
> Cheers
>
> Martin
>
> PS: Version FLOW3 1.1.0
More information about the FLOW3-general
mailing list