Package org.hglteam.validation
Class ValidationError
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.lang.IllegalArgumentException
-
- org.hglteam.validation.ValidationError
-
- All Implemented Interfaces:
Serializable
public final class ValidationError extends IllegalArgumentException
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classValidationError.ValidationErrorBuilder<T extends RuntimeException>
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <X,T extends RuntimeException>
Function<X,T>from(Supplier<T> exceptionConstructor)static <T extends RuntimeException>
ValidationError.ValidationErrorBuilder<T>using(Function<String,T> exceptionConstructor)static <X,T extends RuntimeException>
Function<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 Detail
-
using
public static <T extends RuntimeException> ValidationError.ValidationErrorBuilder<T> using(Function<String,T> exceptionConstructor)
-
from
public static <X,T extends RuntimeException> Function<X,T> from(Supplier<T> exceptionConstructor)
-
-