On Sat, 06 Aug 2005 17:19:35 +0200
Dennis Sterzenbach <[EMAIL PROTECTED]> wrote:

> Hi Folks!
> 
> What do you think about re-throwing an Exception?
> I think of a situation when writing a complex framework
> and one call on a lower hierachy level throws an Exception,
> the higher levels should be able to get to know.
> If I have to catch it on a higher level, I can't leave the
> caught Exception as is just adding my current context to the
> stack trace.

<?php

try {
 /* do something here */
} catch (Exception $e) {
  throw $e;
}

?>

Is it what you need?

-- 
Wbr, 
Antony Dovgal

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to