[dna-issues] [JBoss JIRA] Resolved: (DNA-180) Change exceptions to use I18n

Randall Hauch (JIRA) jira-events at lists.jboss.org
Wed Aug 6 02:12:56 EDT 2008


     [ https://jira.jboss.org/jira/browse/DNA-180?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Randall Hauch resolved DNA-180.
-------------------------------

    Resolution: Rejected


This really isn't that good of an idea, since this would mean DNA exceptions would take I18n objects while other exceptions (e.g., standard Java exceptions) do not.

> Change exceptions to use I18n
> -----------------------------
>
>                 Key: DNA-180
>                 URL: https://jira.jboss.org/jira/browse/DNA-180
>             Project: DNA
>          Issue Type: Task
>          Components: Common, Connectors, Federation, Maven Classloader, Sequencers, SPI
>    Affects Versions: 0.1
>            Reporter: Randall Hauch
>            Assignee: Randall Hauch
>             Fix For: 0.2
>
>
> The runtime exceptions used in DNA take String messages, but everywhere they're used we pass an I18n.text() result into the constructor.  These exceptions should be changed to take an I18n and parameters, and to delay the actual processing of the localization.  This would make it possible to allow people in different locales to view the exceptions correctly (i.e., a web application where administrators can view the problems/errors).  We probably should have a base class that represents a DNA exception that does most (if not all) of this work.
> This should be an easy change, although it will likely have a large (but straighforward) impact on the code base.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the dna-issues mailing list