Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:28109 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 20160 invoked by uid 1010); 21 Feb 2007 09:11:12 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 20145 invoked from network); 21 Feb 2007 09:11:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Feb 2007 09:11:12 -0000 Authentication-Results: pb1.pair.com header.from=helly@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=helly@php.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain php.net from 85.214.94.56 cause and error) X-PHP-List-Original-Sender: helly@php.net X-Host-Fingerprint: 85.214.94.56 aixcept.net Received: from [85.214.94.56] ([85.214.94.56:58264] helo=h1149922.serverkompetenz.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 22/43-25581-EAC0CD54 for ; Wed, 21 Feb 2007 04:11:11 -0500 Received: from [192.168.1.3] (dslb-084-063-059-154.pools.arcor-ip.net [84.63.59.154]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by h1149922.serverkompetenz.net (Postfix) with ESMTP id 20DC71B3629; Wed, 21 Feb 2007 10:11:08 +0100 (CET) Date: Wed, 21 Feb 2007 10:09:57 +0100 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <1212949782.20070221100957@marcus-boerger.de> To: Lukas Kahwe Smith CC: PHP Developers Mailing List In-Reply-To: <45DC08BA.6000203@pooteeweet.org> References: <45DC08BA.6000203@pooteeweet.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] setters in the Exception class? From: helly@php.net (Marcus Boerger) Hello Lukas, the default exception class will not get any setters anytime. The reason is that we have to rely on the generated info and cannot change it due to the way the exception object is used and especially destroyed. I see two ways here. First changing/fixing whatever SOAPFault is based on and second we could create what you need - generating a working copy - somewhere. best regards marcus Wednesday, February 21, 2007, 9:54:18 AM, you wrote: > Hello, > I am consuming some Java provide webservices. In some cases we get > SOAPFault instances, that I would like to massage a bit, since I do not > like the structure or format in the generated SOAPFault (for example it > does not set the error code properly). However since there are no > setters, I have to create a new Exception instance. So I am wondering if > it makes sense to add some setters to the default Exception class to > make this sort of thing possible without creating a new Exception > instance ..? > regards, > Lukas Best regards, Marcus