Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 37800 invoked from network); 28 Jun 2010 23:50:16 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 28 Jun 2010 23:50:16 -0000 Received: (qmail 11426 invoked by uid 500); 28 Jun 2010 23:50:15 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 11337 invoked by uid 500); 28 Jun 2010 23:50:15 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 11328 invoked by uid 99); 28 Jun 2010 23:50:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Jun 2010 23:50:14 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Jun 2010 23:50:12 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o5SNnoYx023825 for ; Mon, 28 Jun 2010 23:49:51 GMT Message-ID: <15319775.102781277768990834.JavaMail.jira@thor> Date: Mon, 28 Jun 2010 19:49:50 -0400 (EDT) From: "Ole Ersoy (JIRA)" To: issues@commons.apache.org Subject: [jira] Commented: (MATH-361) Localization and Error Handling In-Reply-To: <588355934.629481270116987224.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/MATH-361?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12883355#action_12883355 ] Ole Ersoy commented on MATH-361: -------------------------------- What about having a Enum class with a minimum set of constraint messages used throughout the core library and another set of Enum classes that have messages specific to Mathematical Context of each CM class? So for example the GammaDistribution would only use the minimum set of Enum messages. If an application developer wanted the CM library's help in giving end users more specific error messages, she could use the GammaDistributionMessageEnum class, which contains messages more specific to the scenarios that arise if users use the GammaDistribution class in ways that violate its constraints. Perhaps a simple utility to go along with this that she could use to get the "The shape parameter of the Gamma Distribution cannot be negative" message, to display in the user interface, when the user tries a negative value. > Localization and Error Handling > ------------------------------- > > Key: MATH-361 > URL: https://issues.apache.org/jira/browse/MATH-361 > Project: Commons Math > Issue Type: Improvement > Affects Versions: 2.1 > Reporter: Gilles > Priority: Minor > Attachments: l10n.tar.gz, res.tar.gz > > > This proposal aims at easing the handling of error during algorithms development, and also enhancing the flexibility of the error reporting (provide meaningful exception classes and run-time selection of the localization formatting). > More details at [http://www.mail-archive.com/dev@commons.apache.org/msg14570.html] -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.