Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:69626 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 72092 invoked from network); 17 Oct 2013 14:38:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Oct 2013 14:38:48 -0000 Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.223.175 as permitted sender) X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.223.175 mail-ie0-f175.google.com Received: from [209.85.223.175] ([209.85.223.175:37985] helo=mail-ie0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 12/BC-12663-876FF525 for ; Thu, 17 Oct 2013 10:38:48 -0400 Received: by mail-ie0-f175.google.com with SMTP id aq17so3912005iec.20 for ; Thu, 17 Oct 2013 07:38:45 -0700 (PDT) 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=6/y5LxqJ65xrWdppcID/vL4bXQ+qnis9/aeGMI2Ykpo=; b=Lbzrf9iubywEW4CuCvJlWavW/+3O09bemqPVLubLibV9Jc7pxmUcc6myk4zgO+rE8K xmkVcUvo6vPLzprfpcKagI9vjGdNTicFZ7w6CwT9bQUDOFDt325iua2bblLvgGZ6O1dd YzuQdF92uXoG1O6MK7eRV1/LIFmOa8Y8FHAVUBaDRWvRWkOmJX0NopwKMnpt69av9QBm jB0lV9+usqOQMj69X5sYfdbF6qrckgCwQyWY4ZB1+I654v99yreHasF6EsTtyFk0YOLx cWp9o04HiI2EIffIcmDWMv8PY7wBZJALQ1GIKkbCr34J+Hga/lbHAcgRFu0hIrlvIYAV frYQ== MIME-Version: 1.0 X-Received: by 10.42.94.208 with SMTP id c16mr5807105icn.18.1382020725490; Thu, 17 Oct 2013 07:38:45 -0700 (PDT) Received: by 10.50.73.42 with HTTP; Thu, 17 Oct 2013 07:38:45 -0700 (PDT) In-Reply-To: References: Date: Thu, 17 Oct 2013 16:38:45 +0200 Message-ID: To: Levi Morrison Cc: Benjamin Schneider , internals Content-Type: multipart/alternative; boundary=485b397dd1ab6a506704e8f0c6db Subject: Re: [PHP-DEV] Proposal: Introduction of InvalidStateException From: tyra3l@gmail.com (Ferenc Kovacs) --485b397dd1ab6a506704e8f0c6db Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Thu, Oct 17, 2013 at 4:33 PM, Levi Morrison wro= te: > > > > I would like to propose the introduction of an 'InvalidStateException' > > into the SPL extension. Within the existing exceptions I am not able > > to find a type that would represent a state error, throwable if a > > method has been invoked at an illegal or inappropriate time. > > > > Exceptions are one part of the SPL that are a nasty, poorly thought-out > mess (no offense to anyone who worked on it; this stuff is harder than > people realize). I am -1 on simply adding another exception to our mess, > but if we can clean it up then I might support it, depending on details. > if somebody wonders what Levi is referring to: https://wiki.php.net/rfc/spl-improvements --=20 Ferenc Kov=C3=A1cs @Tyr43l - http://tyrael.hu --485b397dd1ab6a506704e8f0c6db--