Package io.guise.framework.validator
Class ValidationsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
io.guise.framework.validator.ValidationsException
- All Implemented Interfaces:
Serializable
,Iterable<ValidationException>
,Collection<ValidationException>
Validation exception indicating that multiple validation errors occurred. This exception can be caught and updated with new validation exceptions.
- Author:
- Garret Wilson
- See Also:
-
Constructor Summary
ConstructorDescriptionValidationsException
(ValidationException... validationExceptions) Validation exceptions constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
addAll
(Collection<? extends ValidationException> c) void
clear()
boolean
boolean
containsAll
(Collection<?> c) boolean
isEmpty()
iterator()
boolean
boolean
removeAll
(Collection<?> c) boolean
retainAll
(Collection<?> c) int
size()
Object[]
toArray()
<T> T[]
toArray
(T[] a) Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
equals, hashCode, parallelStream, removeIf, spliterator, stream, toArray
-
Constructor Details
-
ValidationsException
Validation exceptions constructor. The provided validation exceptions will be added to the list of exceptions.- Parameters:
validationExceptions
- The validation exceptions to be added to the list.
-
-
Method Details
-
size
public int size()- Specified by:
size
in interfaceCollection<ValidationException>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceCollection<ValidationException>
-
contains
- Specified by:
contains
in interfaceCollection<ValidationException>
-
iterator
- Specified by:
iterator
in interfaceCollection<ValidationException>
- Specified by:
iterator
in interfaceIterable<ValidationException>
-
toArray
- Specified by:
toArray
in interfaceCollection<ValidationException>
-
toArray
public <T> T[] toArray(T[] a) - Specified by:
toArray
in interfaceCollection<ValidationException>
-
add
- Specified by:
add
in interfaceCollection<ValidationException>
-
remove
- Specified by:
remove
in interfaceCollection<ValidationException>
-
containsAll
- Specified by:
containsAll
in interfaceCollection<ValidationException>
-
addAll
- Specified by:
addAll
in interfaceCollection<ValidationException>
-
removeAll
- Specified by:
removeAll
in interfaceCollection<ValidationException>
-
retainAll
- Specified by:
retainAll
in interfaceCollection<ValidationException>
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<ValidationException>
-