on 10-13-2008 4:54 PM
Dear All
I want display the system error message in try .....catch sentence , bcz this can help me to find out the error reason ,
e.g.
try
{
}
catch (final Exception ex)
{
wdComponentAPI.getMessageManager().reportException( uFF1FuFF1FuFF1F);
}
the position" ???" how to write ?
by the way ,
I not want the define error message.
e.g.
wdComponentAPI.getMessageManager().reportException("my define message",false);
Thanks
Hi,
Place this in your catch block:
wdComponentAPI.getMessageManager().reportException(ex.getMessage(),true);
Regards,
Murtuza
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just write this in the catch block:
catch(Exception e)
{
e.printStackTrace();
}
will let you see the actual Exception
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.