cancel
Showing results for 
Search instead for 
Did you mean: 

com.sap.exception is deprecated

Former Member
0 Kudos

Hi,

while adding the DC com.sap.exception to my project in NWDS 7.2 it shows that it is deprecated.

Which DC does replace the deprecated one?

Best regards,

Kevin

Accepted Solutions (1)

Accepted Solutions (1)

Vlado
Advisor
Advisor
0 Kudos

None. Just use standard Java exceptions instead of the wrappers in com.sap.exception.

--Vladimir

Former Member
0 Kudos

Hi Vladimir,

I'm using the Destination API which includes DestinationException. And this one is based on com.sap.exception and I need to reference the DC, otherwise the code won't compile.

Best regards,

Kevin

Vlado
Advisor
Advisor
0 Kudos

If you are not using com.sap.exception directly but only through DestinationException, you shouldn't need to reference it.

Former Member
0 Kudos

If I don't import it I cannot throw a DestinationException, I get the error

No exception of type DestinationException can be thrown; an exception type must be a subclass of Throwable

To avoid this message I added the com.sap.exception reference.

Former Member
0 Kudos

Hello Kevin

I've faced with the same problem.

Have you managed?


Answers (0)