I've done some reading on the ZE2 exception handling, but I'm not quite
sure I understand how it works. I'm familiar with the following in perl:
eval {
do some stuff...
}
if ($@) {
report an exception...
}
Which looks a lot like the following in PHP5:
try {
do some stuff...
}
catch () {
}
The problem I'm running into: what do I pass as arguments to catch()?
The articles on ZE2 use something like: catch (Exception $e) {}, or
something like catch(MyException $e) (where MyException is a class they
defined in their examples). Is the 'Exception' class a base
class/handler with PHP5? Do I need to create my own exception handler
classes? Do I even need to catch objects of a specific type, or can I
simply do:
catch ($error) {
do something with $error
}
Thanks in advance.
--
Matthew Weier O'Phinney | WEBSITES:
Webmaster and IT Specialist | http://www.garden.org
National Gardening Association | http://www.kidsgardening.com
802-863-5251 x156 | http://nationalgardenmonth.org
mailto:[EMAIL PROTECTED] | http://vermontbotanical.org
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php