[
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/[email protected]/msg14570.html]
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.