C - The type of the cause exception.E - The type of the assembled exception.@NotThreadSafe public class SequentialIOExceptionBuilder<C extends Exception,E extends SequentialIOException> extends AbstractExceptionBuilder<C,E>
SequentialIOException from one or more Exceptions by
chaining
them.
When the assembly is thrown or returned later, it is sorted by
priority.| Constructor and Description |
|---|
SequentialIOExceptionBuilder(Class<C> c,
Class<E> e) |
| Modifier and Type | Method and Description |
|---|---|
static SequentialIOExceptionBuilder<SequentialIOException,SequentialIOException> |
create()
Static constructor provided for comforting the most prominent use case.
|
protected E |
post(E assembly)
This method is called to post-process the given result of the assembly
after it has been checked out.
|
protected E |
update(C cause,
E previous)
Chains the given exceptions and returns the result.
|
check, fail, warnprivate final Class<E extends SequentialIOException> clazz
public static SequentialIOExceptionBuilder<SequentialIOException,SequentialIOException> create()
protected final E update(C cause, E previous)
update in class AbstractExceptionBuilder<C extends Exception,E extends SequentialIOException>cause - A(nother) non-null cause exception to add to the
assembly.previous - The previous result of the assembly or null if
this is the first call since the creation of this instance or the
last assembly has been checked out.null is not permitted.IllegalStateException - if
cause.SequentialIOException.getPredecessor() is
already initialized by a previous call to
SequentialIOException.initPredecessor(SequentialIOException).protected final E post(E assembly)
The implementation in the class AbstractExceptionBuilder simply
returns the parameter.
Sorts the given exception chain by
priority
and returns the result.
post in class AbstractExceptionBuilder<C extends Exception,E extends SequentialIOException>assembly - The checked out result of the exception assembly
- may be null.null.Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.