Package com.atlassian.bamboo.utils
Class FirstException<T extends Throwable>
java.lang.Object
com.atlassian.bamboo.utils.FirstException<T>
Remembers the first reported exception so that it can be rethrown later.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetIfFirst(T e) Remembers the exception if none was reported so far.voidThrows the exception if one is present.
-
Constructor Details
-
FirstException
public FirstException()
-
-
Method Details
-
setIfFirst
Remembers the exception if none was reported so far. -
throwIfPresent
public void throwIfPresent() throws TThrows the exception if one is present.- Throws:
T
-