note 17566 rejected from language.oop.constructor by zak
| From: | zak@php.net | Date: | Sat, 15 Dec 2001 03:47:24 +0000 |
| Subject: | note 17566 rejected from language.oop.constructor by zak | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-22835@lists.php.net to get a copy of this message | ||
can i fail constructor? how ?
details:
i need effect similar to ObjectPascal routine >>fail<<, causing, when called in
constructor, abortion of constructor and occurence of an exception. why? see this:
class someClass{
var $one_hundred_params;
function someClass($param){
if(!($one_hundred_params = failable_func($param)))
>>fail<<<;
}
function someWork(){
do_something_with($one_hundred_params);
}
}
can anyone help me ?