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/

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



Reply via email to