commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ole Ersoy (JIRA)" <>
Subject [jira] Commented: (MATH-361) Localization and Error Handling
Date Mon, 28 Jun 2010 23:49:50 GMT


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:
>             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 []

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message