Is there (not NotImplementedException, not supported).
+14
A:
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
Thilo
2009-06-30 10:29:17
Great. Now all that remains is that this will be the #1 Google result for "notsupportedexception java"
ripper234
2009-06-30 10:32:24
Not implement is exactly not what I wanted btw, I want an exception that explicitly states I never intend to implement this method.
ripper234
2009-06-30 10:33:32
Not unlikely, Google is very good to Stackoverflow.
Thilo
2009-06-30 10:33:34
We've got Jon Skeet on our side for that one.
Matthew Scharley
2009-06-30 10:39:01
For me it is hit number eight now: http://www.google.co.jp/search?q=notsupportedexception+java
Thilo
2009-07-01 01:18:06
Just so you guys know, I just googled "java NotSupportedException" and this turns up #1
chakrit
2010-09-05 17:40:45
A:
You can use either UnsupportedOperationException or NoSuchMethodException or extend the Exception class and create your own custom exception called NotImplementedException or whatever
NoSuchMethodException should really only be used in cases involving reflection, which you are using Method.invoke(...).
William Brendel
2009-06-30 12:54:13