cancel
Showing results for 
Search instead for 
Did you mean: 

ABOUT CATCHING EXCEPTIONS IN WEBDYNPRO

Former Member
0 Kudos

IN WEBDYNPRO I WANT TO HANDLE EXCEPTION

SO IN TRY WHAT I HAVE TO WRITE

AND IN CATCH WHAT I HAVE TO WRITE

PLESE GIVE ME CODE

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

hi

In the method give the following code

try{

// your code

}

catch(Exception e){

wdComponentAPI.getMessageManager().raiseException("Exception"+e,true);

}

Regards,

Rathna

Former Member
0 Kudos

i tried but but in output

suceessfully inserted instead of it displayed like unreported exception

and below it displayed what i have send that message is displayed

please tell i have to avoid those beside what i am sending ony displayed

thhats my output

Former Member
0 Kudos

could u be more eloborate in ur scenario.

Send ur code so that we could find what is the problem in it.

Regards,

rathna

arun_srinivasan
Contributor
0 Kudos

hi,

bind this method to any action as action handler r event handler

public void method_name()

{

try

{

// your block of code

}

catch(Exception e)

{

wdcomponentAPI.getmessagemanager.raiseException(“Exception” +e,true);

}

}

hope this helps u,

Regards,

Arun