tags:

views:

208

answers:

4

what is the standard exception to throw in Java for not supported/implemented operations

+16  A: 

UnsupportedOperationException

dfa
sometimes it is too easy, isnt it.
Markus Lausberg
+3  A: 

You could use UnsupportedOperationException.

JRL
+3  A: 

see: UnsupportedOperationException

Luigi
+2  A: 

If you want more granularity and better decription, you could use NotImplementedException from commons-lang : http://commons.apache.org/lang/api-release/org/apache/commons/lang/NotImplementedException.html

Guillaume