Class ThrowableCollector
- java.lang.Object
-
- org.antublue.test.engine.internal.util.ThrowableCollector
-
public class ThrowableCollector extends Object
Class to collect a list of Throwable Exceptions
-
-
Constructor Summary
Constructors Constructor Description ThrowableCollector()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(Throwable throwable)Method to collect a Throwable ExceptionsvoidaddAll(ThrowableCollector throwableCollector)Method to add a ThrowableCollector's Throwable Exceptions to this ThrowableCollectorOptional<Throwable>getFirst()Method to get the first Throwable ExceptionList<Throwable>getList()Method to get the List of Throwable ExceptionsbooleanisEmpty()Method to return whether the ThrowableCollector has any Throwable Exceptionsintsize()Method to get the number of Throwable Exception collected
-
-
-
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
-
-