``UnexpectedValueException`` would be the appropriate exception here according to the php documentation