Split up throwException
Split up throwException

Since throwException does two different things, split it into two (very simple) functions.

NeilFraser/CodeCity,google/CodeCity,NeilFraser/CodeCity,google/CodeCity,NeilFraser/CodeCity,google/CodeCity,NeilFraser/CodeCity,google/CodeCity