Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:83238 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 22983 invoked from network); 19 Feb 2015 20:26:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Feb 2015 20:26:56 -0000 Authentication-Results: pb1.pair.com smtp.mail=ircmaxell@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ircmaxell@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.172 as permitted sender) X-PHP-List-Original-Sender: ircmaxell@gmail.com X-Host-Fingerprint: 209.85.217.172 mail-lb0-f172.google.com Received: from [209.85.217.172] ([209.85.217.172:41342] helo=mail-lb0-f172.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 41/F1-10294-D0746E45 for ; Thu, 19 Feb 2015 15:26:54 -0500 Received: by lbiz11 with SMTP id z11so2238774lbi.8 for ; Thu, 19 Feb 2015 12:26:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=SKqAGImIcBtB2BBgKpDi1SwkDveDJOtWRuvsPCnZ4H0=; b=KDj1gR5HE9+8USf7OfKEUKnkaSeNQYyjyL3K24UrhOh4vt+lrHuv6hHYtz15//kXm6 JEa/X/Ky8UlGBlVh3dobe96JZyrkrGT8tYttQ8piTWlMwKAeADrxd3BvdLq5BE+PZw48 naq73x6fYkfljnAyiz5r0ud5zovQBJQ46TOyCf4xxrap3Nex8WkI7CYN6/ELODTbKU9V g4OhXQXGrquhX6jt5b0A79ytXyK7ypgUbbotMXJN/MPYyhvsthpC0nSe5ljKkOnPZ+zy IklafeMVuxJl7WiTXHekHkzRsTYH85jAkBcR+kKLZCj98Ii5vyI6prisHPQuYn2TNUcF hIUg== MIME-Version: 1.0 X-Received: by 10.153.5.11 with SMTP id ci11mr5225012lad.95.1424377609861; Thu, 19 Feb 2015 12:26:49 -0800 (PST) Received: by 10.25.43.9 with HTTP; Thu, 19 Feb 2015 12:26:49 -0800 (PST) In-Reply-To: References: Date: Thu, 19 Feb 2015 15:26:49 -0500 Message-ID: To: Nikita Popov Cc: PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Re: [RFC] Exceptions in the engine From: ircmaxell@gmail.com (Anthony Ferrara) Nikita (and all), > * Subclassing: Should there be more specific subclasses of EngineException > for particular errors? I think there's an important case to be made here. I don't think every error belongs having its own subclass, but there are at least a few cases where it may make sense. This list is based off the current PR (1095) and should be seen as incomplete : 1. Argument Mismatch (not passing required parameter, passing invalid parameter, etc) 2. Parse Error (eval, etc) - note this appears to be implemented already 3. Methods On Non-Objects (call to a member function on null) 4. Call to undefined method (this should be a separate exception from ^^^) I also think it *may* be worth while splitting out Class not found and function not found exceptions into their own type, but not 100% sure. Thanks Anthony