Class ValidationsException

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Iterable<ValidationException>, java.util.Collection<ValidationException>

    public class ValidationsException
    extends java.lang.Exception
    implements java.util.Collection<ValidationException>
    Validation exception indicating that multiple validation errors occured. This exception can be caught and updated with new validation exceptions.
    Author:
    Garret Wilson
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean add​(ValidationException o)  
      boolean addAll​(java.util.Collection<? extends ValidationException> c)  
      void clear()  
      boolean contains​(java.lang.Object o)  
      boolean containsAll​(java.util.Collection<?> c)  
      boolean isEmpty()  
      java.util.Iterator<ValidationException> iterator()  
      boolean remove​(java.lang.Object o)  
      boolean removeAll​(java.util.Collection<?> c)  
      boolean retainAll​(java.util.Collection<?> c)  
      int size()  
      java.lang.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
      • Methods inherited from interface java.lang.Iterable

        forEach
    • Constructor Detail

      • ValidationsException

        public ValidationsException​(ValidationException... validationExceptions)
        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 Detail

      • size

        public int size()
        Specified by:
        size in interface java.util.Collection<ValidationException>
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface java.util.Collection<ValidationException>
      • contains

        public boolean contains​(java.lang.Object o)
        Specified by:
        contains in interface java.util.Collection<ValidationException>
      • toArray

        public java.lang.Object[] toArray()
        Specified by:
        toArray in interface java.util.Collection<ValidationException>
      • toArray

        public <T> T[] toArray​(T[] a)
        Specified by:
        toArray in interface java.util.Collection<ValidationException>
      • remove

        public boolean remove​(java.lang.Object o)
        Specified by:
        remove in interface java.util.Collection<ValidationException>
      • containsAll

        public boolean containsAll​(java.util.Collection<?> c)
        Specified by:
        containsAll in interface java.util.Collection<ValidationException>
      • removeAll

        public boolean removeAll​(java.util.Collection<?> c)
        Specified by:
        removeAll in interface java.util.Collection<ValidationException>
      • retainAll

        public boolean retainAll​(java.util.Collection<?> c)
        Specified by:
        retainAll in interface java.util.Collection<ValidationException>
      • clear

        public void clear()
        Specified by:
        clear in interface java.util.Collection<ValidationException>