Package com.io7m.cedarbridge.errors
Class CBExceptionTracker<T extends Exception>
java.lang.Object
com.io7m.cedarbridge.errors.CBExceptionTracker<T>
- Type Parameters:
T- The type of exceptions raised
A class that tracks exceptions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddException(T nextException) Add an exception to the tracker.voidThrow an exception ofaddException(Exception)has been called at least once.
-
Constructor Details
-
CBExceptionTracker
public CBExceptionTracker()A class that tracks exceptions.
-
-
Method Details
-
addException
Add an exception to the tracker.- Parameters:
nextException- The exception
-
throwIfNecessary
Throw an exception ofaddException(Exception)has been called at least once.- Throws:
T- If required
-