KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a program, a part of which executes a loop. During the execution of this loop, there are exceptions. Obviously, I would like my program to run without errors, but for the sake of progress, I would like the program to execute over the entire input and not stop when an exception is thrown. The easiest way to do this would be by implementing an except block. However, when I do this, it except s all exceptions and continues with the program and I never get to see the exception message, which I need in order to debug. Is there a way to except any arbitrary exception and be able to print out the exception message in the except block?
Tags (comma-separated)
Save Edits
Cancel