[Tutor] Re: Error Raising
Alan Gauld
alan.gauld at freenet.co.uk
Thu Apr 21 23:20:16 CEST 2005
The tutorial is one of the documents, but you should have downloaded
all of the documentation for the current version, not just the tutor.
Alan G.
----- Original Message -----
From: "Joseph Quigley" <cpu.crazy at gmail.com>
To: <tutor at python.org>; <tutor at python.org>
Sent: Thursday, April 21, 2005 3:43 PM
Subject: [Tutor] Re: Error Raising
> Ahh. I really like the ability to make my own exceptions. This info
will
> help alot.
> Thanks,
> Joe
> PS. Would the Tutorial included with IDLE be the same as the site's
docs?
>
>
> >The standard (built-in) exceptions are documented here:
> >http://docs.python.org/lib/module-exceptions.html
> >
> >If you don't find any that suit you, defining your own is as easy
as
> >
> >class MyException(Exception):
> > pass
> >
> >....
> >try:
> > raise MyException
> >except MyException:
> > ...
> >
> >Kent
>
>
>
More information about the Tutor
mailing list