M
Maurice LING
Hi,
I'm trapping exceptions with these codes...
try:
[do something]
except IOError: [IO error handling]
except TypeError: [Type error handling]
except: [other error handling]
in [other error handling], one of the things I need to do is to display
to the use the kind of exception raised and the message, if any.
How can I do this without a big if statement to go through the list of
exceptions?
Thanks in advance.
Maurice
I'm trapping exceptions with these codes...
try:
[do something]
except IOError: [IO error handling]
except TypeError: [Type error handling]
except: [other error handling]
in [other error handling], one of the things I need to do is to display
to the use the kind of exception raised and the message, if any.
How can I do this without a big if statement to go through the list of
exceptions?
Thanks in advance.
Maurice