thow -> throw

correcting small typo thowWarning -> throwWarning