Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41864 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 39581 invoked from network); 12 Nov 2008 07:28:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Nov 2008 07:28:50 -0000 Authentication-Results: pb1.pair.com header.from=hannes.magnusson@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=hannes.magnusson@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.146.181 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: hannes.magnusson@gmail.com X-Host-Fingerprint: 209.85.146.181 wa-out-1112.google.com Received: from [209.85.146.181] ([209.85.146.181:40493] helo=wa-out-1112.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BB/E9-07308-1B58A194 for ; Wed, 12 Nov 2008 02:28:49 -0500 Received: by wa-out-1112.google.com with SMTP id j32so160615waf.7 for ; Tue, 11 Nov 2008 23:28:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=IusRN975rGJWM76XUBMRekbBpGH24e7oc9IO3lnVcqo=; b=pskYuzJN/HnHh2l1kWwosO4dVFokXo0tKGYbecqA23GST9iH8E5byqXad1IjU5EWrS kwfkgOxj6kOaVVnxMz8iPlSisNz4wlvUSleWHKBgJ9eUPaBbXEn0JzEJSpOC7FkXiYOt xeUiYCg4oJR2Wp9NN6eVICH1qs4KOk7Dug70g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=UxanxnhUTMZfft6DjiGV0yjckbLjhfsVsu6xWz2O9tkfaP2wPNku76+AVeyacAcWQf EXasckMB3VkQInVa101vW9P4B2PY8UuX6Q34XCoTDE1GDieDQ0kX3K3XGvUpVQ8iBLXK kVie9A/lgg41Kn1bzF+OXkdbYpgienPsrJmqY= Received: by 10.115.92.2 with SMTP id u2mr5975165wal.137.1226474926897; Tue, 11 Nov 2008 23:28:46 -0800 (PST) Received: by 10.114.148.19 with HTTP; Tue, 11 Nov 2008 23:28:46 -0800 (PST) Message-ID: <7f3ed2c30811112328sde86564ge7631b1d7d13bca2@mail.gmail.com> Date: Wed, 12 Nov 2008 08:28:46 +0100 To: "Etienne Kneuss" Cc: "David Grudl" , "PHP internals" , marcus.boerger@post.rwth-aachen.de In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4919AFE5.5000203@grudl.com> Subject: Re: [PHP-DEV] New SPL exceptions proposal From: hannes.magnusson@gmail.com ("Hannes Magnusson") On Tue, Nov 11, 2008 at 23:00, Etienne Kneuss wrote: > Hello David, > > On Tue, Nov 11, 2008 at 5:16 PM, David Grudl wrote: >> Hello *internals* and Marcus! >> >> What do you think about possibility to implement to PHP 5.3 several useful >> default exceptions? >> >> (note that InvalidArgumentException, RuntimeException and LogicException >> exists since PHP 5.1) >> >> /** >> * The exception that is thrown when the value of an argument is >> * outside the allowable range of values as defined by the invoked method. >> */ >> class ArgumentOutOfRangeException extends InvalidArgumentException >> {} > > Looks a bit redundant with OutOfRangeException I see no point in any of them. We already have like 15 exceptions.. There is absolutely no point in any more, unless they'll have some superpowers (like ErrorException). -Hannes