cancel
Showing results for 
Search instead for 
Did you mean: 

How to display system error message

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Place this in your catch block:

wdComponentAPI.getMessageManager().reportException(ex.getMessage(),true);

Regards,

Murtuza

Former Member
0 Kudos

Thanks! Everyone,my question have solved.

Answers (1)

Answers (1)

Former Member
0 Kudos

Just write this in the catch block:

catch(Exception e)

{

e.printStackTrace();

}

will let you see the actual Exception