Java equivalent to .Net's NotSupportedException

Java.NetException

Java Problem Overview


Is there (not NotImplementedException, not supported).

Java Solutions


Solution 1 - Java

java.lang.UnsupportedOperationException

Or, if you use Apache Commons Lang and the operation should be supported, but has not been implemented (yet?):

org.apache.commons.lang.NotImplementedException

Solution 2 - Java

You can use either UnsupportedOperationException or NoSuchMethodException or extend the Exception class and create your own custom exception called NotImplementedException or whatever

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questionripper234View Question on Stackoverflow
Solution 1 - JavaThiloView Answer on Stackoverflow
Solution 2 - Javauser121803View Answer on Stackoverflow