error handling

Bernard bernard.chhun at gmail.com
Wed Oct 11 15:16:21 EDT 2006


I just found this webpage showing the most common exceptions:
http://pydoc.org/1.5.2/exceptions.html

I hope this can help in some way.

Fulvio wrote:
> ***********************
> Your mail has been scanned by InterScan MSS.
> ***********************
>
>
> Hello there,
>
> Simple question : how do I manage errors by the use "try/except" clause.
> Example:
> If I'd like to catch error coming from a function call that's using IMAP4
> class, which error may raise such class?
> In other words I've doubts about which error object I should put after
> the "except" statement in order to trap the wanted error.
>
> Is there, somehow, the way to list the errors from a class or function, prior
> digging into the source?
> 
> F




More information about the Python-list mailing list