You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Emmanuel Bourg (JIRA)" <ji...@apache.org> on 2008/07/25 10:35:31 UTC

[jira] Updated: (CLI-93) Better exception messages when validating required fields

     [ https://issues.apache.org/jira/browse/CLI-93?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Bourg updated CLI-93:
------------------------------

      Component/s:     (was: CLI-2.x)
      Environment:     (was: Operating System: other
Platform: Other)
    Fix Version/s:     (was: 2.0)
                   1.2
          Summary: Better exception messages when validating required fields  (was: [cli] Better exception messages when validating required fields)

> Better exception messages when validating required fields
> ---------------------------------------------------------
>
>                 Key: CLI-93
>                 URL: https://issues.apache.org/jira/browse/CLI-93
>             Project: Commons CLI
>          Issue Type: Improvement
>    Affects Versions: 1.0
>            Reporter: Daniel Spangler
>            Priority: Minor
>             Fix For: 1.2
>
>
> If the exception messages when required fields aren't found were worded a bit 
> better, it would prevent users of this API from having to regenerate messages 
> to their users on what went wrong.  As it is now, the exception message just 
> states the names of the options that were not found.  If this message contained 
> some phrase stating something like: "The following required fields were not 
> found: -r, -g.", then we could just pass the exception message on to the user.  
> A better way to approach the problem might be some sort of way to customize 
> common error messages as long as it was done in a way that would reduce the 
> amount of coding needed by the user of the API.

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