Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 434 invoked from network); 29 Jan 2007 21:10:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Jan 2007 21:10:33 -0000 Received: (qmail 59301 invoked by uid 500); 29 Jan 2007 21:10:36 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 59228 invoked by uid 500); 29 Jan 2007 21:10:36 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 59217 invoked by uid 99); 29 Jan 2007 21:10:36 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Jan 2007 13:10:36 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [217.12.12.197] (HELO smtp807.mail.ukl.yahoo.com) (217.12.12.197) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 29 Jan 2007 13:10:25 -0800 Received: (qmail 57385 invoked from network); 29 Jan 2007 21:10:03 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=btopenworld.com; h=Received:X-YMail-OSG:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding:X-Antivirus:X-Antivirus-Status; b=rBCEFOb+LtKIZwoUPovcAeQ2co2Rtze71pmjX+PjY/RKOxRRF8wkSo9GzEscUdhPe/AxrhQ5ugjz7YQgUrvCu0msCu8lTDalrOax7a1oQHDBcofopBCWzaoxSmsegZdxzUWJNC1ZON7eOUfoDaJsqEaDMOnP1kw84EKg9IeyTSg= ; Received: from unknown (HELO ?127.0.0.1?) (scolebourne@btinternet.com@86.133.180.110 with plain) by smtp807.mail.ukl.yahoo.com with SMTP; 29 Jan 2007 21:10:02 -0000 X-YMail-OSG: 2mFfnhEVM1nQiQvumSf2CmHHu6DEXr3eZr4.GBCgCmtch_Cfvfy9bvyeewdrr7vo6FPhHPbf10LwT4sNU4wk0vg7U4_Sx8imDHv07flztpZtGqwoOsDSMYWt4zincJ2QZcvS8XV5n3bPT4GKto2sNbkSfijVABecRsSQuek5MeP9f9a6o8yoHTKCTA-- Message-ID: <45BE62AA.9010008@btopenworld.com> Date: Mon, 29 Jan 2007 21:10:02 +0000 From: Stephen Colebourne User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: Jakarta Commons Developers List Subject: Re: [all] exceptions and localization References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Antivirus: avast! (VPS 0708-1, 29/01/2007), Outbound message X-Antivirus-Status: Clean X-Virus-Checked: Checked by ClamAV on apache.org J�rg Schaible wrote: > My bottom line: If you build an application, you have > to do localization (of exception and logging) at the application > layer, because only there you can give the user a context, that is > really useful. This implies catching exceptions from libraries and > wrapping them with your own and it implies also, that you should > have access to the basic parts of the exception (e.g. the file name) > easily i.e. usign the exeption's API. This part can be provided by > common lib (and the JDK fails here often enough badly), but it cannot > serve the requirements of an application it has no knowledge of. I believe that the provision of access to the basic parts of the exception, as described here, is not unreasonable. Its not one I consider essential however. If it can be achieved without over-complicating the exception then fine, however I suspect that to achieve the goal will require many more classes and methods than this actually justifies. This is a case for KISS. Stephen --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org