The Lava assert statement provides an easy way of error reporting:
If the compound statement in its body evaluates to false, a specific exception is thrown.
If you add a comment to the assert statement then this will be included in the exception reporting message box.
See also: