commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Bourg (JIRA)" <>
Subject [jira] Resolved: (CLI-93) Better exception messages when validating required fields
Date Fri, 25 Jul 2008 09:59:31 GMT


Emmanuel Bourg resolved CLI-93.

    Resolution: Duplicate

This issue has been addressed in CLI-149, the exception message displays the missing options.

> Better exception messages when validating required fields
> ---------------------------------------------------------
>                 Key: CLI-93
>                 URL:
>             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.

View raw message