I want to design a python program that handles exceptions in other programs , I also want this to access the stack trace in python . I am new t python development but am willing to learn but I do not have a direction on where to proceed . Could somebody please point me to a direction / resources that I could follow and maybe develop these skills , specifically what I should be learning to achieve my goal.
I want to develop this on python 2.7
Thank you for your responses.
EDIT : by handling exceptions , I just want to know what exception occured . Like in Java with try catch blocks where you can print out the stack trace and see if it is an arithmetic / array out of bounds error
Hi I was also thinking of something on this line something like
try
(Execute python program here) // ie import this program
except : 1st exception
except : 2nd exception
.
.
etc
I know how to read from a file , but an unsure if this is correct for just executing a program written by somebody else?