cancel
Showing results for 
Search instead for 
Did you mean: 

How to define Exception of method in component interface

Former Member
0 Kudos

Hi All,

Does the method defined in the component interface support exception throwing?

I can only find the place to set the return type and parameter. Everytime I add throws sentence after the method definition and try to save the code, the throws sentence would be eliminated.

Thanks,

YiNing

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi YiNing,

NWDS will take only the signature for methods what u define while creating the method. In the implementation if u try to add something , it will remove that as soon as u save it.

Exception is available only with 7.1.

regards

Sumit

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Adjacent to the paramenters tab,there is also a Exceptions tab.Which version you are using?

Regards,

Sudhir

Former Member
0 Kudos

I'm using NWDS 7.0.9, and cannot find the tab you mentioned.

Former Member
0 Kudos

Hi,

this is not available in the version you are using.

Regards

Ayyapparaj

Former Member
0 Kudos

Hi,

First of all you cant add or modify the method's signature from the implementation tab. It has to be done through the methods tab and through the new method wizard.

You cant throw excetions here through the methods.

thanks & regards,

Manoj