Class JexlException.Ambiguous

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    JexlException

    public static class JexlException.Ambiguous
    extends JexlException.Parsing
    Thrown when parsing fails due to an ambiguous statement.
    Since:
    3.0
    See Also:
    Serialized Form
    • Field Detail

      • recover

        private final transient JexlInfo recover
        The mark at which ambiguity might stop and recover.
    • Constructor Detail

      • Ambiguous

        public Ambiguous​(JexlInfo begin,
                         JexlInfo end,
                         java.lang.String expr)
        Creates a new Ambiguous statement exception instance.
        Parameters:
        begin - the start location information
        end - the end location information
        expr - the source expression line
      • Ambiguous

        public Ambiguous​(JexlInfo info,
                         java.lang.String expr)
        Creates a new Ambiguous statement exception instance.
        Parameters:
        info - the location information
        expr - the source expression line
    • Method Detail

      • tryCleanSource

        public java.lang.String tryCleanSource​(java.lang.String src)
        Tries to remove this ambiguity in the source.
        Parameters:
        src - the source that triggered this exception
        Returns:
        the source with the ambiguous statement removed or null if no recovery was possible