Changed to LogicException.