Skip to Content
0
Former Member
Jul 09, 2007 at 05:54 PM

try...catch question!

98 Views

Hi,

I tried to understand this try...catch statement really can't get. Please someone explain this to me.

try {

bapiInput.execute();

queryOutputNode.bind(bapiInput.getOutput().getFlight_List());

} catch (Exception e) {

IWDMessageManager msgMgr = wdComponentAPI.getMessageManager();

msgMgr.reportException(e.getLocalizedMessage(), false);

}

If I want to replace one line of code at the third line to copy the elements, how can I copy one node from another node with different elements?

try {

bapiInput.execute();

WDCopyService.copyCorresponding(bapiInput.getOutput().getFlight_List(),

wdContext.nodeOVSAirportQueryOutput());

//queryOutputNode.bind(bapiInput.getDestination_From());

} catch (Exception e) {

IWDMessageManager msgMgr = wdComponentAPI.getMessageManager();

msgMgr.reportException(e.getLocalizedMessage(), false);

}

Regards,

-Napadol