Change to correct throw statement to preserve stack trace.