Class ThrowableCollector


  • public class ThrowableCollector
    extends Object
    Class to collect a list of Throwable Exceptions
    • Constructor Detail

      • ThrowableCollector

        public ThrowableCollector()
        Constructor
    • Method Detail

      • add

        public void add​(Throwable throwable)
        Method to collect a Throwable Exceptions
        Parameters:
        throwable - throwable
      • addAll

        public void addAll​(ThrowableCollector throwableCollector)
        Method to add a ThrowableCollector's Throwable Exceptions to this ThrowableCollector
        Parameters:
        throwableCollector - throwableCollector
      • size

        public int size()
        Method to get the number of Throwable Exception collected
        Returns:
        the return value
      • isEmpty

        public boolean isEmpty()
        Method to return whether the ThrowableCollector has any Throwable Exceptions
        Returns:
        the return value
      • getFirst

        public Optional<Throwable> getFirst()
        Method to get the first Throwable Exception
        Returns:
        the return value
      • getList

        public List<Throwable> getList()
        Method to get the List of Throwable Exceptions
        Returns:
        the return value