Class JexlException.Ambiguous

All Implemented Interfaces:
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:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • recover

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

    • Ambiguous

      public Ambiguous(JexlInfo begin, JexlInfo end, 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, String expr)
      Creates a new Ambiguous statement exception instance.
      Parameters:
      info - the location information
      expr - the source expression line
  • Method Details

    • detailedMessage

      protected String detailedMessage()
      Description copied from class: JexlException
      Accesses detailed message.
      Overrides:
      detailedMessage in class JexlException.Parsing
      Returns:
      the message
    • tryCleanSource

      public String tryCleanSource(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