Is there anything like .net's NotImplementedException in java?
+10
A:
I think the UnsupportedOperationException is what you are looking for.
http://java.sun.com/javase/6/docs/api/java/lang/UnsupportedOperationException.html
Chris Dail
2010-02-24 20:47:04
I say it is something quite different. The NIE also tells it may not implemented yet, where the UOE says me it never will...
Dykam
2010-02-24 21:01:19
@Dykam, then wouldn't it be a NotImplementedYetException?
Yishai
2010-02-24 21:06:38
@Dykam: `new UnsupportedOperationException("Not implemented yet")` - happy?
Michael Borgwardt
2010-02-24 21:08:31
I didn't mean it was worse, just had a different use case.
Dykam
2010-02-25 05:46:57
+9
A:
Commons Lang has it: http://commons.apache.org/lang/api-2.4/org/apache/commons/lang/NotImplementedException.html
Or you could throw a UnsupportedOperationException - http://java.sun.com/j2se/1.4.2/docs/api/java/lang/UnsupportedOperationException.html
Ravi Wallau
2010-02-24 20:48:04