added warning for exceptions that do not generate runtime error