def test_caught_exception_form(): h1, h2 = "test", "test" try: h1 = test_exception.test_userexception("Evy") except UserDefineException as e: h2 = e.value return '''<h3>%s</h3> <h3>%s</h3>''' % (h1, h2)
def test_uncaught_exception_form(): h1 = test_exception.test_userexception("Evy") return '''<h3>%s</h3>''' % h1
def test_exception_form(): # h1 = test_exception.test_syntaxerror("Hello") # h1 = test_exception.test_nameerror("Hello") # h1 = test_exception.test_ZeroDivisionError(0) h1 = test_exception.test_userexception("Evy") return '''<h3>%s</h3>''' % h1