Class MultipleFailuresException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.github.cowwoc.requirements10.java.MultipleFailuresException
- All Implemented Interfaces:
Serializable
Thrown if multiple validations have failed.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMultipleFailuresException
(List<ValidationFailure> failures) Creates a new exception. -
Method Summary
Modifier and TypeMethodDescriptionReturns an unmodifiable list of validation failures.Methods declared in class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MultipleFailuresException
Creates a new exception.- Parameters:
failures
- the list of validation failures- Throws:
NullPointerException
- iffailures
is nullIllegalArgumentException
- iffailures
contains less than two elements
-
-
Method Details
-
getFailures
Returns an unmodifiable list of validation failures.- Returns:
- an unmodifiable list of validation failures
-