Quantcast
Channel: SCN : Popular Discussions - Web Dynpro Java
Viewing all articles
Browse latest Browse all 989

Unhandled exception type WDURLException

$
0
0

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


Viewing all articles
Browse latest Browse all 989

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>