Class Checks
java.lang.Object
org.parboiled.support.Checks
Utility methods for grammar integrity checks.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidThrows a GrammarException if the given condition is not met.static voidThrows a GrammarException if the given condition is not met.
-
Method Details
-
ensure
-
ensure
Throws a GrammarException if the given condition is not met.- Parameters:
condition- the conditionerrorMessage- the error message
-