Simple implementation of exception handler which looks for given exception
types. If one of the types is found then a counter is incremented and the
limit is checked to determine if it has been exceeded and the Throwable
should be re-thrown. Also allows to specify list of 'fatal' exceptions that
are never subject to counting, but are immediately re-thrown. The fatal list
has higher priority so the two lists needn't be exclusive.
- Dave Syer
- Robert Kasanicky
Apply the provided properties to create a delegate handler.
Flag to indicate the the exception counters should be shared between
sibling contexts in a nested batch (i.e. inner loop). Default is false.
Set this flag to true if you want to count exceptions for the whole
(outer) loop in a typical container.
useParent true if the parent context should be used to store the
Rethrows only if the limit is breached for this context on the exception
The limit on the given exception type within a single context before it
limit the limit
Setter for the exception classes that this handler counts. Defaults to
. If more exceptionClasses are specified handler uses
single counter that is incremented when one of the recognized exception
exceptionClasses is handled.