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
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 makeclass 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