# any method can throw an errordef method_with_exception(): raise Exception("test exception")method_with_exception() # <-Error