You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by arunarapole <ar...@gmail.com> on 2010/08/25 22:23:05 UTC

How to show any type of exception in feedbackpanel or in popup window

Hi


I have a Exception called Violation of UNIQUE KEY constraint
'UQ__usr__FE76F85348BAC3E5'. Cannot insert duplicate key in object abc table

above Exception i have to display in same page  feedbackpanel  or in popup
window .

If any one knows about please post me your ideas

Thank you

Aruna
-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-show-any-type-of-exception-in-feedbackpanel-or-in-popup-window-tp2338841p2338841.html
Sent from the Wicket - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: How to show any type of exception in feedbackpanel or in popup window

Posted by Peter Ertl <pe...@gmx.org>.
put that around the code in your page that causes the exception:

try
{
   databaseMethodThatThrows();
}
catch(DatabaseException x)
{
  error(e.getMessage);
}


Am 25.08.2010 um 22:46 schrieb nino martinez wael:

> you could catch them in the request cycle?
> 
> 2010/8/25 arunarapole <ar...@gmail.com>
> 
>> 
>> Hi
>> 
>> 
>> I have a Exception called Violation of UNIQUE KEY constraint
>> 'UQ__usr__FE76F85348BAC3E5'. Cannot insert duplicate key in object abc
>> table
>> 
>> above Exception i have to display in same page  feedbackpanel  or in popup
>> window .
>> 
>> If any one knows about please post me your ideas
>> 
>> Thank you
>> 
>> Aruna
>> --
>> View this message in context:
>> http://apache-wicket.1842946.n4.nabble.com/How-to-show-any-type-of-exception-in-feedbackpanel-or-in-popup-window-tp2338841p2338841.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>> 
>> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: How to show any type of exception in feedbackpanel or in popup window

Posted by nino martinez wael <ni...@gmail.com>.
you could catch them in the request cycle?

2010/8/25 arunarapole <ar...@gmail.com>

>
> Hi
>
>
> I have a Exception called Violation of UNIQUE KEY constraint
> 'UQ__usr__FE76F85348BAC3E5'. Cannot insert duplicate key in object abc
> table
>
> above Exception i have to display in same page  feedbackpanel  or in popup
> window .
>
> If any one knows about please post me your ideas
>
> Thank you
>
> Aruna
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/How-to-show-any-type-of-exception-in-feedbackpanel-or-in-popup-window-tp2338841p2338841.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>