Re: [VOTE] Catching Multiple Exception Types
| From: | Dan Ackroyd | Date: | Sun, 17 Apr 2016 23:08:53 +0000 |
| Subject: | Re: [VOTE] Catching Multiple Exception Types | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-92391@lists.php.net to get a copy of this message | ||
I voted yes.
It's really not that common that I have to do stuff in exception
handling, when I do need to do some clearing up, or checking to see if
the operation that threw the exception needs to be re-tried, having to
repeat that code in all of the catch statements that need it, is just
nasty duplication.
Although it's a small change, having this is a very nice small
improvement that doesn't break anyone's existing code.
Thanks for putting it forward.
cheers
Dan
On 17 April 2016 at 17:51, Bronisław Białek <after89@gmail.com> wrote:
> Hi Internals,
>
> We've opened the vote on
> https://wiki.php.net/rfc/multiple-catch
> Voting will end on 2015-05-01
>
> --
> Regards,
> Bronisław Białek.