[Tutor] Class as Exception

Bob Gailer ramrom@earthling.net
Mon Feb 10 15:03:03 2003


--=======1BA76B9F=======
Content-Type: text/plain; x-avg-checked=avg-ok-39F2189B; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 8bit

At 11:48 AM 2/10/2003 -0800, Jeff Shannon wrote:
 > if you want to use a class as an exception, you really ought to be 
deriving it from Exception (or some other subclass of Exception)

Yep that's what I needed. After reading a good explanation of class-based 
exceptions in TWC's Python Programming Patterns it came clear. I had been 
trying to work from the language reference, which is pretty terse.

Bob Gailer
mailto:ramrom@earthling.net
303 442 2625

--=======1BA76B9F=======
Content-Type: text/plain; charset=us-ascii; x-avg=cert; x-avg-checked=avg-ok-39F2189B
Content-Disposition: inline


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.445 / Virus Database: 250 - Release Date: 1/21/2003

--=======1BA76B9F=======--