Package org.hglteam.validation.reactive
Class ValidationError
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
org.hglteam.validation.reactive.ValidationError
- All Implemented Interfaces:
Serializable
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Method Summary
Modifier and TypeMethodDescriptionstatic <X,T extends RuntimeException>
ExceptionProvider<X,T> static <T extends RuntimeException>
ValidationError.ValidationErrorBuilder<T>static <X,T extends RuntimeException>
ExceptionProvider<X,T> withMessage(Function<String, T> constructor, String message, Object... args) Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
using
public static <T extends RuntimeException> ValidationError.ValidationErrorBuilder<T> using(Function<String, T> exceptionConstructor) -
from
public static <X,T extends RuntimeException> ExceptionProvider<X,T> from(Supplier<T> exceptionConstructor) -
withMessage
public static <X,T extends RuntimeException> ExceptionProvider<X,T> withMessage(Function<String, T> constructor, String message, Object... args)
-