e.printStackTrace equivalent in python
2022-08-31 05:36:03
I know that (where e is an Exception) prints the occurred exception
but, I was trying to find the python equivalent of Java's that exactly traces the exception to what line it occurred and prints the entire trace of it.print(e)
e.printStackTrace()
Could anyone please tell me the equivalent of in Python?e.printStackTrace()