Remove unnecessary exception throwing.