Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:83170 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 85174 invoked from network); 19 Feb 2015 10:59:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Feb 2015 10:59:23 -0000 Authentication-Results: pb1.pair.com header.from=indeyets@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=indeyets@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.176 as permitted sender) X-PHP-List-Original-Sender: indeyets@gmail.com X-Host-Fingerprint: 209.85.217.176 mail-lb0-f176.google.com Received: from [209.85.217.176] ([209.85.217.176:37960] helo=mail-lb0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4A/00-18870-902C5E45 for ; Thu, 19 Feb 2015 05:59:22 -0500 Received: by lbiz11 with SMTP id z11so6658271lbi.5 for ; Thu, 19 Feb 2015 02:59:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:mime-version:content-type:from:in-reply-to:date:cc :message-id:references:to; bh=g64Q4i5t77j/+fZ6l+3Nof+EjHQ+0vbgDc0N3beEIDI=; b=D7HzOls8pr0W+7WnhnZwt4Mbxa8qzjgxAfSqef8fazu5H9E/md5tyiANcJ1i7hBw4q ZqUNtV2MlaKRlBNG1+qpm8GpiqcraZ4eNywTnTkT4nij/Y0tZgdhdve3eIJao/GkHLmb H1J6+IL/Ph69DCvFTJF8UPvYF3EwbfQAKTmoBxbG2c+2RwqXBusAYmAkTmzSipXHeYhE GVrKf1dG26QCsWDb4guU4Hs9/sxJX1HLSj92jfxv7PM3BsWOi9Ygd+q2GDAkYBSb+FAS CgQdt9d4I4gU5+Me+g5kINa+isbiU9xOF5ElV9lRLkqgSJlZakUNz/ko7d2yzCgLioFu F5Rw== X-Received: by 10.112.126.130 with SMTP id my2mr3411294lbb.55.1424343558871; Thu, 19 Feb 2015 02:59:18 -0800 (PST) Received: from [10.0.1.8] ([91.219.26.208]) by mx.google.com with ESMTPSA id w9sm3879231lag.37.2015.02.19.02.59.17 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 19 Feb 2015 02:59:17 -0800 (PST) Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) Content-Type: multipart/signed; boundary="Apple-Mail=_04F4106B-9C4F-4367-B71F-72067B4495BE"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Pgp-Agent: GPGMail 2.5b5 In-Reply-To: Date: Thu, 19 Feb 2015 13:59:05 +0300 Cc: Dan Ackroyd , Nikita Popov , PHP internals Message-ID: References: To: Dmitry Stogov X-Mailer: Apple Mail (2.2070.6) Subject: Re: [PHP-DEV] [RFC] Exceptions in the engine From: indeyets@gmail.com (Alexey Zakhlestin) --Apple-Mail=_04F4106B-9C4F-4367-B71F-72067B4495BE Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On 19 Feb 2015, at 12:54, Dmitry Stogov wrote: >=20 > I think we may introduce the following hierarchy >=20 > abstarct class BaseException { > } > class Exception extends BaseException { > } > class EngineException extends BaseException { > } >=20 > 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 --Apple-Mail=_04F4106B-9C4F-4367-B71F-72067B4495BE Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org iQEcBAEBCgAGBQJU5cIEAAoJEMkJcRxZdR27NVcH/Rby7P+S7R/uZOBZLHueOwJ9 WqwmnHuu9adTMrn9rZLjmGX85FPJ1W1sDinzajitm4jvhXNRu1WO2bfA7nMtOiOE HLHt6rbokav2vcLFzU9SAm6FnSJxrNqYWUOEyHtdF9FFqPDp5KjPHr9USYvbzNec o2mRGHnSChscwUT4jp9aBjbrDeZUeerjhyoDiCf84t60/zxXaUwz0/sodhDwvdra r5tx1va4cwUQ+D8BNtF1G/Nh1PELQ10twJEvSqn+WpgtIIFzM1Kcy4pClEhe9IPf PVg74Lh1nO/fkzWEto6Jyf5k8McnR95+lh+9SChJ0bazU2EZqooNbnQTuaAGoAY= =TNC5 -----END PGP SIGNATURE----- --Apple-Mail=_04F4106B-9C4F-4367-B71F-72067B4495BE--