Re: PHP5: PEAR base Exception classes

From: Date: Thu, 17 Jun 2004 13:17:19 +0000
Subject: Re: PHP5: PEAR base Exception classes
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-30862@lists.php.net to get a copy of this message
Hans wrote:
I don't think that every package needs its own Extensions, but in some cases a given package will want to be able to selectively throw different categories for handling by the calling code. Exceptions become useful when you can use hierarchies & selectively catch. Again, classes could always throw the base Exception object if desired.
Err ... make that 'Exception extensions' :) Let me clarify: in some cases packages could have their own exception hierarchies, but this would be overkill much of the time. Having some generic types in PEAR would be useful, however, *especially* having a base NestableException option. Hans

« previous php.pear.dev (#30862) next »