Re: Exception extends

From: Date: Mon, 14 Apr 2003 07:17:19 +0000
Subject: Re: Exception extends
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-895@lists.php.net to get a copy of this message
In phpbuilder.com you have an article of php5 by Luis Argerich, here you have a simple code of exceptions. <?php class WeirdProblem extends Exception { private $data; function WeirdProblem($data) { parent::exception(); $this->data = $data; } function getMessage() { return $this->data . " caused a weird exception!"; } } ?> ----- Original Message ----- From: <michel@ziobudda.net> To: <internals@lists.php.net> Sent: Monday, April 14, 2003 8:55 AM Subject: [PHP-DEV] Exception extends > Hi, I'm writing my exception class based on default and zend > integrated Exception Class, but (always there is a bug) why when I make > > class MyE extends Exception { > //bla bla bla > > } > > into MyE class I don't have getline() and getfile() (from Exception > Class)??? > > tnx. > > > -- > Morelli Michel > ZioBudda.net Coordinator > michel@ziobudda.net > > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.internals (#895) next »