Switched throw; to throw std::exception();