cancel
Showing results for 
Search instead for 
Did you mean: 

Unhandled exception type WDURLException

Former Member
0 Kudos

Hi

I am trying to convert JWD app to a DC to

deploy it on Portal 7.4. After converting the app

using an external library to store my jars, I am

left with an odd exception:

I have created an object of type IWDCachedWebResource

and from this object I am trying to get the URL.

Although I import the class

com.sap.tc.webdynpro.services.sal.url.WDURLException

the error I am getting is

Unhandled exception type WDURLException

If I try to surround my code with

try{

myCachedWebResource.getUrl();

}

catch(WDURLException e)

{

}


catch(Exception x)

{

}

I get an error:

No exception of type WDURLException can be thrown; an exception must be of type Throwable.

Does anyone know why catch(Exception e) is not enough?

Why WDURLException  is not implementing Throwable?

How to overcome this problem?

regards

Yuval

Accepted Solutions (0)

Answers (1)

Answers (1)

vijay_kumar49
Active Contributor
0 Kudos

Can you try this syntax code

try

{

// Implement your code here

}

catch (WDURLException e)

           {

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

          }

catch (WDDeploymentException ex)

         {

               messageMgr.reportException(ex.getLocalizedMessage(), false);

          }

declare the globally

IWDMessageManager messageMgr = wdComponentAPI.getMessageManager();

Former Member
0 Kudos

Hi

No this was not the answer.

The way to do it was to rely on

the new webdynpro api

attached to the software component.

Regards

YUval