T - the type of a ChainedExceptionpublic static class ChainedException.ChainedExceptionBuilder<T extends ChainedException>
extends java.lang.Object
| Constructor and Description |
|---|
ChainedExceptionBuilder() |
| Modifier and Type | Method and Description |
|---|---|
void |
appendException(T exceptions)
Append a chain of exceptions to the current chain of exceptions.
|
T |
getException() |
void |
throwIfNecessary()
Throw the head of the chain of exceptions is at least one has been appended.
|
public void appendException(@Nonnull
T exceptions)
exceptions - the chain of exceptions to appendpublic void throwIfNecessary()
throws T extends ChainedException
T - the exceptionT extends ChainedException@Nonnull public T getException()