Interface VoidValidationBuilder
-
- All Superinterfaces:
LoggingValidator,ThrowingValidator<Void>
public interface VoidValidationBuilder extends ThrowingValidator<Void>, LoggingValidator
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <E extends RuntimeException>
VoidorElseThrow(Function<String,E> throwableFunction)-
Methods inherited from interface org.solidcoding.validation.api.contracts.LoggingValidator
orElseLogMessage, orElseLogMessage
-
-
-
-
Method Detail
-
orElseThrow
<E extends RuntimeException> Void orElseThrow(Function<String,E> throwableFunction)
- Specified by:
orElseThrowin interfaceThrowingValidator<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.
-
-