Use UnsupportedOperationException.