Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java equivalent to .Net's NotSupportedException

Is there (not NotImplementedException, not supported).

like image 207
ripper234 Avatar asked Jun 30 '09 10:06

ripper234


2 Answers

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

like image 155
Thilo Avatar answered Oct 15 '22 15:10

Thilo


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

like image 31
user121803 Avatar answered Oct 15 '22 15:10

user121803