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

2010-08-25 Thread Peter Ertl
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 
> 
>> 
>> 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-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>> 
>> 


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



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

2010-08-25 Thread nino martinez wael
you could catch them in the request cycle?

2010/8/25 arunarapole 

>
> 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-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>