Re: [VOTE] Exceptions in the engine
| From: | Dan Ackroyd | Date: | Mon, 18 May 2015 17:38:27 +0000 |
| Subject: | Re: [VOTE] Exceptions in the engine | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-86296@lists.php.net to get a copy of this message | ||
On 18 May 2015 at 15:39, Levi Morrison <levim@php.net> wrote:
>
> I wouldn't group
> TypeException in the same subtree as ParseException, for instance. One
> happens at compile time and the other at run time, which means the
> intent in what you catch is probably quite different.
TypeException is also different the other EngineExceptions, as it's an
exception that people will want to throw from their own code instead
of having a separate UserLandTypeException.
Except for testing, people shouldn't be throwing ParseException or
other EngineExceptions from their code.
cheers
Dan