Should use a different exception here.