[FLOW3-general] Catching PDO Exceptions

Martin titusmailing at googlemail.com
Mon Oct 29 10:31:56 CET 2012


Hi Christian,

thx.

Greetz

Martin

On 26.10.2012 14:49, Christian Müller wrote:
> 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