Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:8051 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33494 invoked by uid 1010); 22 Feb 2004 17:03:30 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 33470 invoked from network); 22 Feb 2004 17:03:30 -0000 Received: from unknown (HELO jdi.jdimedia.nl) (212.204.192.51) by pb1.pair.com with SMTP; 22 Feb 2004 17:03:30 -0000 Received: from localhost (localhost [127.0.0.1]) by jdi.jdimedia.nl (8.12.10/8.12.10) with ESMTP id i1MH3S9b025441; Sun, 22 Feb 2004 18:03:29 +0100 Date: Sun, 22 Feb 2004 18:03:28 +0100 (CET) X-X-Sender: derick@localhost To: =?ISO-8859-1?Q?Erik_Franz=E9n?= cc: internals@lists.php.net In-Reply-To: <20040222164525.95666.qmail@pb1.pair.com> Message-ID: References: <20040222143721.96272.qmail@pb1.pair.com> <20040222145607.GA7239@gjat.josefine.at> <20040222164525.95666.qmail@pb1.pair.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-15 Content-Transfer-Encoding: QUOTED-PRINTABLE Subject: Re: [PHP-DEV] PHP5: Exceptions must valid objects that are derived from class Exception? From: derick@php.net (Derick Rethans) On Sun, 22 Feb 2004, [ISO-8859-1] Erik Franz=E9n wrote: > With this behavior you force the developer to use the exception class. > You cannot use your own class because PHP will trigger an error if you do= =2E > > However, you can of course extend the exception class with your own > class, but you cannot replace the default methods (getMessage etc) since > they are final. > > I don't like this, since you are forced to use the built in exception > class which also has final methods. Where has the feeling of freedom gone= ? Freedom goes with functionality ;-) but I think it's indeed not wise to have getMessage defined as final. (I don't think it makes sense for the other methods to be overridden though). Derick