Skip to Content
avatar image
Former Member

how to handle exceptions in web dyn pro

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Aug 25, 2007 at 09:33 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 26, 2007 at 07:23 PM

    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

    Add comment
    10|10000 characters needed characters exceeded