Module org.junit.platform.launcher
Interface ParseResult
The result of attempting to parse a
TagExpression
.
An instance of this type either contains a successfully parsed
TagExpression
or an error message describing the parse
error.
- Since:
- 1.1
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturn the contained parse error message, if any.default Optional<TagExpression>
Return the containedTagExpression
, if any.default TagExpression
tagExpressionOrThrow
(Function<String, RuntimeException> exceptionCreator) Return the parsedTagExpression
or throw an exception with the contained parse error.
-
Method Details
-
tagExpressionOrThrow
Return the parsedTagExpression
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; nevernull
.
-
errorMessage
Return the contained parse error message, if any. -
tagExpression
Return the containedTagExpression
, if any.
-