Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-5855

Provide a useful error message when the SystemOptionManager is queried for a non-existent option

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 1.11.0
    • None
    • None
    • None

    Description

      Currently when the SystemOptionManager is queried for an unregistered option. It throws a null pointer exception. I should probably throw and IllegalArgumentException with an informative message like "There is no OptionDefinition for <option name>. Either you misspelled the option name or you need to add an OptionDefinition for this option to the code base."

      Attachments

        Issue Links

          Activity

            People

              timothyfarkas Timothy Farkas
              timothyfarkas Timothy Farkas
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: