Hm, I'm sorry, this made its way into an open Pull request although it deserved a little more polishing.

Anyway, this execption's "brother" at the top of the method probably deserves an arror class specified. Do we introduce a new one? What do you suggest?