Corrected exception throwing.