Use PhutilInvalidStateException
Summary: Use PhutilInvalidStateException. Depends on D12803.
Test Plan: Unit tests pass.
Reviewers: Blessed Reviewers, epriestley
Reviewed By: Blessed Reviewers, epriestley
Subscribers: Korvin, epriestley
Differential Revision: https://secure.phabricator.com/D12829