Re: Constructors and Exceptions

From: Date: Thu, 01 Jul 2004 13:29:56 +0000
Subject: Re: Constructors and Exceptions
References: 1 2 3  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-925@lists.php.net to get a copy of this message
On Thu, 1 Jul 2004 06:13:23 +0100 kingwez@gmail.com (Wez Furlong) wrote: > Throwing an exception is the only sane way to handle errors that > prevent object construction. > > If you're excepto-phobic (a new phrase I just invented), then you > should have no code in your ctor and instead have some kind of > start() or init() method. I'm excepto-phobic except in ctor :-) --Pierre

« previous php.pecl.dev (#925) next »