Class ThrowableCollector
java.lang.Object
org.antublue.test.engine.internal.util.ThrowableCollector
Class to collect a list of Throwable Exceptions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidMethod to accept a Throwable, adding to the collector and printing the stack tracevoidMethod to collect a Throwable ExceptionsgetFirst()Method to get the first Throwable ExceptiongetList()Method to get the List of Throwable ExceptionsbooleanisEmpty()Method to return whether the ThrowableCollector is emptybooleanMethod to return whether the ThrowableCollector is not emptyintsize()Method to get the number of Throwable Exception collected
-
Constructor Details
-
ThrowableCollector
public ThrowableCollector()Constructor
-
-
Method Details
-
add
Method to collect a Throwable Exceptions- Parameters:
throwable- throwable
-
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 is empty- Returns:
- the return value
-
isNotEmpty
public boolean isNotEmpty()Method to return whether the ThrowableCollector is not empty- Returns:
- the return value
-
getFirst
Method to get the first Throwable Exception- Returns:
- the return value
-
getList
Method to get the List of Throwable Exceptions- Returns:
- the return value
-
accept
Method to accept a Throwable, adding to the collector and printing the stack trace
-