Interface VoidValidationBuilder

    • Method Detail

      • orElseThrow

        <E extends RuntimeExceptionVoid orElseThrow​(Function<String,​E> throwableFunction)
        Specified by:
        orElseThrow in interface ThrowingValidator<Void>
        Type Parameters:
        E - the bound of the Exception that needs to be thrown when a rule is broken.
        Parameters:
        throwableFunction - the function defining the Exception that needs to be thrown when a rule is broken. The String is the stored failure message of the validation.
        Returns:
        true if all rules pass.