Replaced eInternalError's with exceptions.