Re: IT version 2.0 Error Handling...

From: Date: Thu, 27 Feb 2003 13:12:36 +0000
Subject: Re: IT version 2.0 Error Handling...
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-13985@lists.php.net to get a copy of this message
27 Февраль 2003 16:07, Bertrand Mansion написал: > Hi Alexey, > > I have reviewed your code a bit further and I am not sure the class should > extend PEAR, I would prefer it to use raiseError(). I also don't think > every errors should be fatal as you treat them. For example, it would add > flexibility if a 'block not found' error was not fatal, because some > templates can be generated on runtime with blocks missing on purpose. The comment there is somewhat misleading... :[ In fact I extend PEAR to be able to do $tpl = new HTML_Template_IT(); $tpl->setErrorHandling(PEAR_ERROR_Something); I usually use PEAR_ERROR_DIE, but that is personal preference. > Let me know if this can be fixed. TIA OK, I'll re-word the comment. :]

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