Exception extends

php.internals

Unnamed Person

23 years ago
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

epplestun

23 years ago
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

Unnamed Person

23 years ago
On Mon, 14 Apr 2003, epplestun wrote:
> In phpbuilder.com you have an article of php5 by Luis Argerich, here you > have a simple code of exceptions.
Tnx a lot.
-- Morelli Michel ZioBudda.net Coordinator michel@ziobudda.net