Re: [RFC] Exceptions in the engine

From: Date: Thu, 19 Feb 2015 10:59:05 +0000
Subject: Re: [RFC] Exceptions in the engine
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-83170@lists.php.net to get a copy of this message
> On 19 Feb 2015, at 12:54, Dmitry Stogov <dmitry@zend.com> wrote: > > I think we may introduce the following hierarchy > > abstarct class BaseException { > } > class Exception extends BaseException { > } > class EngineException extends BaseException { > } > > the existing code that caught Exception is going to be unaffected. > New code may decide to catch engine exception in separate catch block > (using EngineException) or in single block (using BaseException) If I remember it correctly, BaseException was used by some real code out there. But we can use _BaseException instead -- Alexey Zakhlestin CTO at Grids.by/you https://github.com/indeyets PGP key: http://indeyets.ru/alexey.zakhlestin.pgp.asc

Attachment: [application/pgp-signature] Message signed with OpenPGP using GPGMail signature.asc
« previous php.internals (#83170) next »