cancel
Showing results for 
Search instead for 
Did you mean: 

how to handle exceptions in web dyn pro

Former Member
0 Kudos

Hi Frndz....

Can any one kindly xplain how to handle exceptions in web dyn pro..like we hav exceptionhandling in java ....so is there any for NWDS

THANKS & REGARDS

Rajesh

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member186016
Active Contributor
0 Kudos

Hi,

Web Dynpro Java is basically java only.i.e You program in java. Hence exceptions are supported in the same way as in java i.e. via try,catch and finally block.

Additionally,

In 04/04s if you create a method in any controller in web dynpro you cann't specify exception that can be thrown in the method. This is now possible in new programming web dynpro model in CE.

Hence when creating a method you can also specify custom or core java (lib)excetions.

Regards,

Ashwani Kr Sharma

Former Member
0 Kudos

Hi

You can handle exception in webdynpro exactly as same as you handle it in java:

try{

....

}catch (Exception e){

e.getMessage

}

you can print it or see it on your last defaultTrace.<>.trc file which is located on:

<your serer>:\usr\sap\<your system>\JC00\j2ee\cluster\server0\log

Good luck;

Yoel