/** * Fail the argument with the given message. * * @param message The message * @throws IllegalArgumentException Thrown with the given message if the check fails */ public void orElseFail(String message) { if (check != null && !check.condition()) { throw new IllegalArgumentException(message); } }