For some unimplemented methods, I want to throw some exception instead of leaving it blank. I know there is already such a class in Java but don't know its exact name. So I typed "Operation" and then Ctrl-Space to let NetBeans to complete it. But only javax.naming.OperationNotSupportedException showed up, which is not what I want. After some search, it turns out the right class is java.lang.UnsupportedOperationException. Description from its javadoc:
- All Implemented Interfaces:
public class UnsupportedOperationException
- extends RuntimeException
Thrown to indicate that the requested operation is not supported.
This class is a member of the Java Collections Framework.