Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:155 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 43160 invoked from network); 22 Mar 2003 23:59:56 -0000 Received: from unknown (HELO vckyb1.nw.wakwak.com) (211.9.230.144) by pb1.pair.com with SMTP; 22 Mar 2003 23:59:56 -0000 Received: from at.wakwak.com (at.wakwak.com [211.9.230.135:25]) by vckyb1.nw.wakwak.com (Postfix) with ESMTP id 3286B4097C; Sun, 23 Mar 2003 08:59:55 +0900 (JST) Received: from at.wakwak.com (z15.219-103-235.ppp.wakwak.ne.jp [219.103.235.15]) by at.wakwak.com (8.12.8/8.12.8/2003-03-04) with SMTP id h2MNxs9r059973; Sun, 23 Mar 2003 08:59:54 +0900 (JST) (envelope-from moriyoshi@at.wakwak.com) Date: Sun, 23 Mar 2003 09:02:40 +0900 X-Mailer: EdMax Ver2.85.3F MIME-Version: 1.0 To: Sterling Hughes Cc: internals@lists.php.net Message-ID: <20030323090240my5O%!@at.wakwak.com> Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit In-Reply-To: <1048367260.848.1147.camel@hasele> References: <1048367260.848.1147.camel@hasele> Subject: Re: [PHP-DEV] default exceptions, interfaces, etc. From: moriyoshi@at.wakwak.com (Moriyoshi Koizumi) Hi, As per naming convention, I think it'd be nice if the methods were named as: getmessage => get_message getcode => get_code If those are corrected, +1 for this feature. Moriyoshi Sterling Hughes wrote: > Hi, > > Attached is a patch (+ 2 files) that add a default "exception" class to > Zend 2. I find this very useful when you just want to throw a simple > exception inside of a try {}, but you don't want to create a new > exception for each and every error. I'll commit this tommorowish, > unless somebody objects. > > -Sterling > -- > "Whether you think you can or think you can't -- you are right." > - Henry Ford