Re: Re: Throwable interface

From: Date: Sun, 23 Mar 2003 15:41:54 +0000
Subject: Re: Re: Throwable interface
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-186@lists.php.net to get a copy of this message
Marcus Börger wrote:
For me it sounds like Sebastian wants to write only one catch handler but that's not the point of designing with exceptions.
No, that's not what I have in mind. The following is from PHPUnit/TestCase.php
    try {
        $this->runTest();
    }
    catch (AssertionFailedError $e) {
        $this->result->addFailure($this, $t);
    }
    catch (Throwable $t) {
        $this->result->addError($this, $t);
    }
-- Sebastian Bergmann http://sebastian-bergmann.de/ http://phpOpenTracker.de/ Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/

« previous php.internals (#186) next »