Re: [RFC Discussion] Catching multiple exception types
| From: | Björn Larsson | Date: | Tue, 08 Mar 2016 23:06:44 +0000 |
| Subject: | Re: [RFC Discussion] Catching multiple exception types | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-91560@lists.php.net to get a copy of this message | ||
Den 2016-03-08 kl. 22:42, skrev Pierrick Charron:
Hi internals, Bronisław Białek and I would like to start a discussion about allowing multiple exception types to be caught in a single catch statement. https://wiki.php.net/rfc/multiple-catch A working implementation and tests are available in the RFC. We are waiting for your constructive feedback and thoughts. Thanks Pierrick Nice RFC! Think it would be good if you had an example in theRFC showing the applicability of catching two php exceptions. Especially given the new exception hierarchy in PHP 7. I'm also pondering if the main target for this is custom exceptions or the built-in ones or both? Regards //Björn Larsson PS