Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78899 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 73886 invoked from network); 14 Nov 2014 07:39:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Nov 2014 07:39:34 -0000 Authentication-Results: pb1.pair.com header.from=mathieudmeyer@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=mathieudmeyer@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.65 as permitted sender) X-PHP-List-Original-Sender: mathieudmeyer@gmail.com X-Host-Fingerprint: 209.85.216.65 mail-qa0-f65.google.com Received: from [209.85.216.65] ([209.85.216.65:36898] helo=mail-qa0-f65.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 47/10-07200-5B1B5645 for ; Fri, 14 Nov 2014 02:39:34 -0500 Received: by mail-qa0-f65.google.com with SMTP id v10so423930qac.0 for ; Thu, 13 Nov 2014 23:39:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=EHk+AhdgrJk8zsjNREi3hP4m92CUqSRWLfzVO5Gb0Lk=; b=GY84O7ZaKEYRPWkaxnC5akhtiR3A1LqJxX6lMcsndY5Z7Fj01rKuDPtPmPF3Zqf0ZC jMcHRGhRsqiVKhPfWqcWXiS4qDCy4gRsCZhHVqhKeAiafkNTHcVmdqsfzSXS39CXFN/A p0MOynXNLklB7+2TaiuoOGUOqStYLN1g0rUfsNwJ5IiYj4udyteAgQe7RuvAUkrJSlv3 w4cMeuUDhiBlO5uXK4b5lM3XtmrJJI3Qa4h+rkkiJFQ8dJ9zQO5tt5nq/Ai1klYyJuFS K3fUVtN/DmHMljL2uWNvjfp8+QvDDg30ikm1j5b6je5bt4q90mpEwD3fTS1XStsiWbZG 66bg== MIME-Version: 1.0 X-Received: by 10.140.90.111 with SMTP id w102mr9025512qgd.88.1415950770779; Thu, 13 Nov 2014 23:39:30 -0800 (PST) Received: by 10.140.21.175 with HTTP; Thu, 13 Nov 2014 23:39:30 -0800 (PST) Date: Fri, 14 Nov 2014 08:39:30 +0100 Message-ID: To: internals@lists.php.net Content-Type: multipart/alternative; boundary=001a11c11a06b63d470507ccbac6 Subject: Extend bundled exceptions From: mathieudmeyer@gmail.com ("Mathieu D.") --001a11c11a06b63d470507ccbac6 Content-Type: text/plain; charset=UTF-8 PHP is lacking of some elemental exceptions. One obvious example would be FileNotFoundException. Java has a FileNotFoundException, C# has a FileNotFoundException, Python has a FileNotFoundError, ... Why doesn't PHP provide a bundled FileNotFoundException or at least a more general IOException? Because of this shortcoming, developers must address this lack by creating the same custom exceptions repeatedly. This is a suggestion/open discussion, sorry if I didn't post it in the right mailing list. - Mathieu --001a11c11a06b63d470507ccbac6--