Fixed exception declared to be thrown.