You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by amit charaya <of...@palinfocom.net> on 2007/08/06 07:16:01 UTC

error meassage

I want to insert a row in table using simple method. I enter  duplicate id
for that table it will generate sql exception how can i return error meassge
that "Duplicate key has been entered" without showing any technical details
of error.
-- 
View this message in context: http://www.nabble.com/error-meassage-tf4222304.html#a12011188
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: error meassage

Posted by Jacques Le Roux <ja...@les7arts.com>.
Did you try to use CheckErrors just after the store ? But I guess it's too late and the transaction has already been rolled back. So
you will need to check the Id before storing...

Jacques

De : "amit charaya" <of...@palinfocom.net>
>
> I want to insert a row in table using simple method. I enter  duplicate id
> for that table it will generate sql exception how can i return error meassge
> that "Duplicate key has been entered" without showing any technical details
> of error.
> -- 
> View this message in context: http://www.nabble.com/error-meassage-tf4222304.html#a12011188
> Sent from the OFBiz - User mailing list archive at Nabble.com.