|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.batch.repeat.exception.CompositeExceptionHandler
public class CompositeExceptionHandler
Composiste ExceptionHandler that loops though a list of delegates.
| Constructor Summary | |
|---|---|
CompositeExceptionHandler()
|
|
| Method Summary | |
|---|---|
void |
handleException(RepeatContext context,
java.lang.Throwable throwable)
Iterate over the handlers delegating the call to each in turn. |
void |
setHandlers(ExceptionHandler[] handlers)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CompositeExceptionHandler()
| Method Detail |
|---|
public void setHandlers(ExceptionHandler[] handlers)
public void handleException(RepeatContext context,
java.lang.Throwable throwable)
throws java.lang.Throwable
handleException in interface ExceptionHandlercontext - the current RepeatContext. Can be used to store
state (via attributes), for example to count the number of occurrences of
a particular exception type and implement a threshold policy.throwable - an exception.
java.lang.Throwable - implementations are free to re-throw the exceptionExceptionHandler.handleException(RepeatContext, Throwable)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||