what exception is it?
Maurice LING
mauriceling at acm.org
Wed Oct 13 22:22:52 EDT 2004
More information about the Python-list mailing list
Wed Oct 13 22:22:52 EDT 2004
- Previous message (by thread): what exception is it?
- Next message (by thread): what exception is it?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message (by thread): what exception is it?
- Next message (by thread): what exception is it?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list