Uploaded image for project: 'Commons Text'
  1. Commons Text
  2. TEXT-127

Add a toggle to throw an exception when a variable is unknown in StringSubstitutor

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.7
    • None

    Description

      Currently, StringSubstitutor is not replacing a variable that is unknown. It would be nice to define the behavior in this case and to allow raising an exception.

      A workaround is to define a custom StringLookup that raises an exception when the variable is unknown but this prevent from using the default value feature from StringSubstitutor

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jbreich Jean-Baptiste REICH
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: