Antony Dovgal wrote:
> try {
> /* do something here */
> } catch (Exception $e) {
> throw $e;
> }
>
> ?>
>
> Is it what you need?
Whooops! Big sorry guys, my fault.
Thanks to you Antony.
Dennis
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.ne
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
> most cases, there aren't very good reasons to throw exceptions from it.
How
> come you can't declare the class when __autoload() is called but you can
do
> so later? In such a weird situation, you could declare a proxy object with
> the same name which relays all calls to the real class if/when y
Don't have access to a running version of PHP right now (on vacation) but
by design __autoload() isn't supposed to propagate an exception. It's your
last chance to load the class and if it fails, then it dies. If this isn't
exactly what's happening then there's a problem.
The reason for this is,