on 02-16-2016 9:49 AM
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
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();
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.