Interface ParseResult

    • Method Detail

      • tagExpressionOrThrow

        default TagExpression tagExpressionOrThrow​(Function<String,​RuntimeException> exceptionCreator)
        Return the parsed TagExpression or throw an exception with the contained parse error.
        Parameters:
        exceptionCreator - will be called with the error message in case this parse result contains a parse error; never null.
      • errorMessage

        default Optional<String> errorMessage()
        Return the contained parse error message, if any.