A certain exception is expected to be thrown out from that method. If we throw something else we should be specific about that, that it's a bug in the code. Hence the Error. Can it be done better?