title: Illegal method called
body: <p>I have a Java class which handles both single valued and multi-valued data. Therefore, it exposes two methods: <code>getValue()</code> and <code>getValues()</code>. However, I want to throw some kind of exception when the <code>getValue</code> method is called for multi-valued data. What is the most relevant exception class that I can use? I feel <code>IllegalAccessException</code> is not appropriate, because I am not using reflection, or any such discovery technique; neither is <code>IllegalArgumentException</code> appropriate because I am not passing any argument as such.</p>