Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:83242 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 32153 invoked from network); 19 Feb 2015 21:39:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Feb 2015 21:39:44 -0000 Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 209.85.220.180 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 209.85.220.180 mail-vc0-f180.google.com Received: from [209.85.220.180] ([209.85.220.180:57756] helo=mail-vc0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8B/63-10294-F1856E45 for ; Thu, 19 Feb 2015 16:39:43 -0500 Received: by mail-vc0-f180.google.com with SMTP id im6so2201903vcb.11 for ; Thu, 19 Feb 2015 13:39:40 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=tRMYOPLGZXqWxmdW9zK7/AXgZ1sPnNZN3YetO+M8cnE=; b=FqAQBk8Qb8yxwI3Plq7RapLPZHhOIWwp14Vb98IAE7myCrqxwHBRbDP8k4SHIpUWAk Lmv+REVK8uDM40X5JD5M5xjBEVX39bZP+IlMiFej28cKaL9UNplZ0Nwd5p5p039DK12u 8ds8G4cquBHjY8fV4xdVZ/GY96T4sDhMRuodoEEZz6nQUDRe0HQemMXdXNeutwbeetoJ 1d7bqQx4CTdGKcgGs/24oN2j4rDE/8jjaSnlAFJSqqP23xdqb36D8C4RMNLsF2qsFejK JNW28zPRql5p2u0si2dN0cQBZNWX60lsK0Jp/25SP429NJk4tYWWdRteBXrWx5gCA8Z7 BVeQ== X-Gm-Message-State: ALoCoQmF2MIKkawaMIpzxrSbL4Zi51AQjmTgZhtfbCF/Qdd/uKnlPwqwAchUhJUEmOc7byiPv1GBanHq6aW9+H1wvjwpoppzX57AsZbkS6xewqrLyYyndObZJ+dFzp3+h/Ymy1WznzWQ8WAC8MJWngmY7tgdkRw38g== MIME-Version: 1.0 X-Received: by 10.52.99.230 with SMTP id et6mr3295464vdb.65.1424381980052; Thu, 19 Feb 2015 13:39:40 -0800 (PST) Received: by 10.52.74.73 with HTTP; Thu, 19 Feb 2015 13:39:39 -0800 (PST) In-Reply-To: References: Date: Fri, 20 Feb 2015 01:39:39 +0400 Message-ID: To: Anthony Ferrara Cc: Nikita Popov , PHP internals Content-Type: multipart/alternative; boundary=20cf3071c7c0f22667050f77c5c7 Subject: Re: [PHP-DEV] Re: [RFC] Exceptions in the engine From: dmitry@zend.com (Dmitry Stogov) --20cf3071c7c0f22667050f77c5c7 Content-Type: text/plain; charset=UTF-8 On Thu, Feb 19, 2015 at 11:26 PM, Anthony Ferrara wrote: > 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. > > Of course, we can add few subclasses of EngineException. Thanks. Dmitry, > Thanks > > Anthony > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --20cf3071c7c0f22667050f77c5c7--