commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jean-Baptiste REICH (JIRA)" <j...@apache.org>
Subject [jira] [Created] (TEXT-127) Detect when a variable is unknown in StringSubstitutor
Date Sun, 29 Jul 2018 17:11:00 GMT
Jean-Baptiste REICH created TEXT-127:
----------------------------------------

             Summary: Detect when a variable is unknown in StringSubstitutor
                 Key: TEXT-127
                 URL: https://issues.apache.org/jira/browse/TEXT-127
             Project: Commons Text
          Issue Type: Improvement
            Reporter: Jean-Baptiste REICH


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



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message