Uploaded image for project: 'Commons CLI'
  1. Commons CLI
  2. CLI-93

Better exception messages when validating required fields

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 1.0
    • 1.2
    • None
    • None
    • 26930

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            daniel.spangler@gmail.com Daniel Spangler
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: